Steve Checkoway
2d68d7b13e
Comment.
2006-07-28 04:38:12 +00:00
Steve Checkoway
e081585830
Add comment.
2006-07-28 04:37:26 +00:00
Steve Checkoway
5da3ac8f36
Avoid copying TapNote where possible and implement some of these algorithms in terms of NoteData::iterators which take constant time to move to the next element rather than GetTapNote which takes logarithmic time.
2006-07-24 04:53:24 +00:00
Steve Checkoway
a07e194cf1
Revert. Fixes Linux build.
2006-07-18 05:51:37 +00:00
Jason Felds
366c3440d4
Fix VC8 macro redef warning. (more to come)
2006-07-18 03:56:37 +00:00
Steve Checkoway
c090130108
Fix splitting composite NoteData.
2006-07-09 23:51:40 +00:00
Steve Checkoway
025997d453
Removes all tap notes except for those with PLAYER_INVALID and those matching that player.
2006-07-09 20:11:46 +00:00
Steve Checkoway
80698277cf
Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
...
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Steve Checkoway
4524010d56
Apply RemoveSimultaneousNotes to each part of a composite NoteData.
2006-06-26 11:35:52 +00:00
Steve Checkoway
0279fd908f
CombineCompositeNoteData(). This will not let you place a note inside a hold note that already exists. Use this when loading from a string as well.
2006-06-26 10:57:10 +00:00
Steve Checkoway
8129d943ba
It's hard to maintain this information when using begin() and end() so rather than wrapping the iterators, just check each time IsComposite() is called since it doesn't happen _that_ often. Just don't call IsComposite() often.
2006-06-26 09:33:11 +00:00
Glenn Maynard
12de9309d6
defined intptr_t
2006-06-24 05:42:52 +00:00
Chris Danford
282c4d82d5
fix VC6 compile
2006-06-24 05:14:13 +00:00
Steve Checkoway
5c37cb873d
Write composite NoteDatas.
2006-06-20 15:27:45 +00:00
Steve Checkoway
d2a550a532
Cleanup.
2006-06-20 14:41:51 +00:00
Steve Checkoway
96e3f211b8
Split the given composite NoteData into it's constituent parts. If the given NoteData is not composite, just copy it.
2006-06-20 14:32:09 +00:00
Steve Checkoway
fff087a76b
Split out LoadFromSMNoteDataStringWithPlayer(). This fills out the NoteData without making any copies of sSMNoteData. Previously, this portion of the code copied the full string twice, once when splitting for measures and once when splitting for lines.
...
Only make a single copy of the string in LoadFromSMNoteDataString() when stripping out comments. Previously, the string was copied as many times as there were comments. Now, the whole loading can happen with a single copy of the data.
2006-06-20 13:34:28 +00:00
Steve Checkoway
5e7ac2deed
Cleanup.
2006-06-20 06:48:30 +00:00
Steve Checkoway
6e6808008e
Simplify. (This changes it from a cubic time operation to a quadratic. Also handles the case where a comment begins on the last line and that line isn't terminated with a newline.)
2006-06-18 00:36:58 +00:00
Glenn Maynard
45449a216e
fix merge error?
2006-04-29 21:18:37 +00:00
Josh Allen
90121ba0f7
Comment, is it still needed?
2006-04-14 13:26:22 +00:00
Glenn Maynard
5f3fe4ec4f
fix RemoveSimultaneousNotes never removes hold notes
2006-04-14 12:44:34 +00:00
Glenn Maynard
8bd5e174f5
NUM_NOTE_TYPES -> NUM_NoteType
2006-02-02 08:43:05 +00:00
Glenn Maynard
7ace9857af
remove pPlayerState param from Attack::GetAttackBeats
2006-02-01 04:44:34 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
0b98adff15
make RadarCategory enum and Lua names consistent
2005-12-24 20:18:56 +00:00
Glenn Maynard
dcd1d8f98e
prefer standard find() over Find
2005-12-21 08:33:30 +00:00
Glenn Maynard
ff7bbfe524
remove ShiftRows
2005-12-18 07:11:51 +00:00
Glenn Maynard
e76574e7cc
split NoteDataUtil::ShiftRows into InsertRows and DeleteRows
2005-12-18 06:26:22 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Chris Danford
c1b271600f
fix voltage calculation
2005-10-03 00:57:12 +00:00
Glenn Maynard
f4a4321a09
float
2005-08-31 23:40:22 +00:00
Glenn Maynard
b2c7e5e829
add "jump to next note", "jump to previous note"
2005-07-22 00:55:36 +00:00
Glenn Maynard
4ec405f13b
IsHoldNoteAtBeat -> IsHoldNoteAtRow
2005-07-22 00:14:24 +00:00
Glenn Maynard
ca3667576c
fix hold heads ignored in RemoveSimultaneousNotes
2005-06-13 20:52:24 +00:00
Chris Danford
1227d18d6c
Modifier -> Modifiers
2005-05-20 08:57:59 +00:00
Glenn Maynard
fa758e9a71
add NoteDataUtil::LoadTransformedLightsFromTwo
2005-05-04 08:18:37 +00:00
Glenn Maynard
82fb85fe1e
split out LightTransformHelper
2005-05-04 07:08:56 +00:00
Chris Danford
b81c304eb6
rename FixImposibleRows -> RemoveStretch and turn it into a mod
2005-05-01 04:35:29 +00:00
Glenn Maynard
4b8f18baae
generalize
2005-04-29 01:57:44 +00:00
Glenn Maynard
8df4f7929a
add NoteDataUtil::AnyTapsAndHoldsInTrackRange
2005-04-29 01:56:38 +00:00
Chris Danford
534842c2da
calculate grade with possible values from radarValues, not from judgement counts from attempted steps
2005-04-26 04:16:45 +00:00
Glenn Maynard
1c3323fac7
add norolls
2005-04-25 09:42:26 +00:00
Glenn Maynard
120b70f06c
add RADAR_NUM_ROLLS
...
ChangeRollsToHolds fix
2005-04-25 09:35:22 +00:00
Glenn Maynard
5d0386a7bc
add NoteDataUtil::ChangeRollsToHolds
2005-04-25 09:18:02 +00:00
Glenn Maynard
101cc2f8c7
fix NoteDataUtil::RemoveHoldNotes removes rolls
2005-04-25 09:15:43 +00:00
Glenn Maynard
d5479053fa
disable unused attack loading code
2005-04-25 02:38:54 +00:00
Chris Danford
8ec01b7cb3
add TapNote SubType instead of a bool for rolls
2005-04-20 01:53:41 +00:00
Chris Danford
6f588aa7d8
add saving/loading/editing of rolls
2005-04-18 01:23:57 +00:00
Glenn Maynard
517e084b99
fix quantize: quantize the duration, don't extend hold notes over tap notes
...
without clearing them, ignore duration for tap notes
2005-03-30 22:05:11 +00:00