Steve Checkoway
|
8292201ad6
|
Step scores are now handled during Update so make sure all Steps happen in Update before we check the rows so that we don't have to wait for the next frame.
|
2006-07-20 07:16:06 +00:00 |
|
Steve Checkoway
|
232a3c10b0
|
Nudge these together.
|
2006-07-20 06:42:25 +00:00 |
|
Glenn Maynard
|
e056c49828
|
unused
|
2006-07-20 04:42:00 +00:00 |
|
Steve Checkoway
|
61624d6539
|
This is handled by ScreenJukebox.
|
2006-07-20 04:36:15 +00:00 |
|
Steve Checkoway
|
b8ab1f7393
|
Fix possible crash if Player accesses the NoteData in it's dtor and the Player is a PlayerPlus. Now just treat PlayerPlus as a smart pointer to a Player with the added Load( const NoteData& ) member function. This is only a connivence class anyway.
|
2006-07-20 02:19:03 +00:00 |
|
Steve Checkoway
|
29e6e796ba
|
Simplify and speed up loading (very very slightly). It would be fastest to add all BPM/stop segments to the array and then sort it once (n log n). It was sorting after every insertion (n^2 log n). This now does simple insertion sort so it's n^2 in the worst case but since upper_bound does a binary search, if the BPM segments are in order this will take n log n in the best case.
That said, you'll notice no difference unless you had thousands of BPM changes in a file.
|
2006-07-20 01:56:17 +00:00 |
|
Steve Checkoway
|
4f4e034af1
|
Ignore invalid BPM changes. No more nonpositive BPMs.
|
2006-07-20 01:46:01 +00:00 |
|
Ben Anderson
|
659a2b8dcf
|
Add ScoreKeeper. I really gotta stay on top of this...
|
2006-07-19 05:32:01 +00:00 |
|
Ben Anderson
|
78500ad3bf
|
Roar! I thought I comitted this!
remove libresample
|
2006-07-18 23:36:59 +00:00 |
|
Steve Checkoway
|
a07e194cf1
|
Revert. Fixes Linux build.
|
2006-07-18 05:51:37 +00:00 |
|
Steve Checkoway
|
61739160fe
|
Handle the new clock api "correctly." At least differentiate CLOCK_MONOTONIC and CLOCK_REALTIME. Mac OS X uses the former for timers and is forced to use the latter for the pthread functions.
|
2006-07-18 04:39:30 +00:00 |
|
Steve Checkoway
|
df4d41da4a
|
Simplify. GetMicrosecondsSinceStart need not actually be set to the beginning of SM. That's handled elsewhere.
|
2006-07-18 04:19:25 +00:00 |
|
Jason Felds
|
11cff15f6f
|
Fix VC8 macro redef warning. (DONE!)
|
2006-07-18 03:58:34 +00:00 |
|
Steve Checkoway
|
bea4177222
|
Remove unneeded assert.
|
2006-07-18 03:57:31 +00:00 |
|
Jason Felds
|
366c3440d4
|
Fix VC8 macro redef warning. (more to come)
|
2006-07-18 03:56:37 +00:00 |
|
Steve Checkoway
|
4f8049377b
|
The default ctor gets the time. Avoid that since we're setting it to the value of the timeval.
|
2006-07-18 03:53:21 +00:00 |
|
Steve Checkoway
|
fbbdc5657a
|
Fix warning (although I think the compiler should really be able to figure this one out on its own).
|
2006-07-18 02:29:10 +00:00 |
|
Steve Checkoway
|
4efb7c4078
|
Fix misses count twice. Do not assume that rows are judged in order. Do not judge a row more than once. The JudgedRows class acts like an array of bools (more or less), one per note row but is implemented as a circular buffer (more or less). Note that m_JudgedRows[i] will only return false one time. After that, it is assumed to have been judged.
|
2006-07-18 00:26:37 +00:00 |
|
Jason Felds
|
9798712912
|
Tidying.
|
2006-07-17 22:36:15 +00:00 |
|
Jason Felds
|
4e92c6c77d
|
Add syntax warning.
|
2006-07-17 18:32:21 +00:00 |
|
Steve Checkoway
|
79f3d0b76e
|
foo* bar -> foo *bar.
|
2006-07-17 03:01:49 +00:00 |
|
Steve Checkoway
|
00878e4ef9
|
Const.
|
2006-07-17 02:59:57 +00:00 |
|
Steve Checkoway
|
649cb46a15
|
Unused.
|
2006-07-17 02:59:35 +00:00 |
|
Steve Checkoway
|
8db5d63e1e
|
This is almost completely a ScoreKeeperNormal now. Perhaps this should be put in SKNormal and this calls can be removed.
|
2006-07-17 01:03:30 +00:00 |
|
Steve Checkoway
|
58847ff1b9
|
Use one ScoreKeeper per Player (as is normal) but share master player's NoteData with the other Players. Note that this means that multiple Players may be updating the same NoteData. This should not matter as the Player should only deal with notes it owns.
|
2006-07-17 01:02:31 +00:00 |
|
Steve Checkoway
|
8ab760a346
|
Put the NoteData into the PlayerInfo and use that for constructing Players. Use the Player's (new) interface GetNoteData() for everything except for loading where ScreenGameplay needs to actually modify the NoteData so do it directly via the PlayerInfo.
|
2006-07-17 00:58:33 +00:00 |
|
Steve Checkoway
|
8502fc3083
|
Use PlayerPlus (a Player plus a NoteData, this gives the old behavior of Player, i.e. calling Load( nd )).
|
2006-07-17 00:56:23 +00:00 |
|
Steve Checkoway
|
d46ec7136e
|
Pass in a PlayerNumber as well.
(This breaks other code, commits coming.)
|
2006-07-17 00:54:46 +00:00 |
|
Steve Checkoway
|
807e24827c
|
Keep a (nonconst) reference to a NoteData rather than owning the NoteData. Replace calls to Load( nd ) by making the changes to the underlying NoteData and calling Load().
(This breaks other code, commits coming.)
|
2006-07-17 00:54:19 +00:00 |
|
Steve Checkoway
|
b1d08d1f8b
|
This is still a work in progress (although I haven't worked on it in over a month).
|
2006-07-17 00:44:38 +00:00 |
|
Steve Checkoway
|
bd7422ef6e
|
Specialize on aligned loads for sse since misaligned loads are much slower.
|
2006-07-17 00:42:46 +00:00 |
|
Steve Checkoway
|
7be6e20fe3
|
Cleanup.
|
2006-07-16 18:34:56 +00:00 |
|
Josh Allen
|
b96481c589
|
Fix compile
NoteData* --> const NoteData&
|
2006-07-16 16:10:00 +00:00 |
|
Steve Checkoway
|
108810fe14
|
No really, cleanup.
|
2006-07-16 07:23:57 +00:00 |
|
Steve Checkoway
|
ba8fb41231
|
Simplify.
|
2006-07-16 07:23:12 +00:00 |
|
Steve Checkoway
|
ad1e7b4afa
|
Cleanup.
|
2006-07-16 07:20:50 +00:00 |
|
Steve Checkoway
|
e1572442b3
|
cleanup
|
2006-07-16 03:14:26 +00:00 |
|
Steve Checkoway
|
90e9d6d57c
|
Don't clamp to 3 seconds.
|
2006-07-16 03:14:03 +00:00 |
|
Thad Ward
|
c86dc1d197
|
fix the messed up pre-build commands. I wish VC6 didn't continually add spaces
to these commands.
|
2006-07-15 23:32:19 +00:00 |
|
Glenn Maynard
|
abf1fcec37
|
remove unused
|
2006-07-15 01:53:58 +00:00 |
|
Glenn Maynard
|
d7336ec0b6
|
cleanup, fix, comment
|
2006-07-15 01:09:15 +00:00 |
|
Glenn Maynard
|
0d678f4e4e
|
cleanup. (current logic works well enough)
|
2006-07-15 00:41:35 +00:00 |
|
Steve Checkoway
|
6ee71e464b
|
It looks strange having the Background menu items have no text so add some defaults.
|
2006-07-14 22:00:12 +00:00 |
|
Steve Checkoway
|
84c50ccfdb
|
Cleanup.
|
2006-07-14 21:39:08 +00:00 |
|
Steve Checkoway
|
b8a3a8b0f0
|
Oops.
|
2006-07-14 21:34:17 +00:00 |
|
Steve Checkoway
|
39b27416b6
|
Don't theme file names.
|
2006-07-14 21:33:08 +00:00 |
|
Steve Checkoway
|
d873b24bfc
|
Resize the answers during load menu. Fixes the crash in ScreenEdit when 'b' is pressed.
|
2006-07-14 21:27:18 +00:00 |
|
Steve Checkoway
|
bf5deb1ee3
|
Add ScoreKeeper.cpp
|
2006-07-14 21:03:55 +00:00 |
|
Jason Felds
|
823e4375c9
|
Add ScoreKeeperShared.* to the list.
|
2006-07-14 20:53:16 +00:00 |
|
Jason Felds
|
d0515023e4
|
Add ScoreKeeper.cpp to the list of compiled files.
|
2006-07-14 20:38:22 +00:00 |
|