Commit Graph
21397 Commits
Author SHA1 Message Date
Steve Checkoway 5a01cb9c3f Split out SaveStats to give more flexibility to subclasses that may wish to interact with the stats differently. 2006-07-10 04:32:33 +00:00
Steve Checkoway 017f1ae707 ScoreKeepers are not Actors, move them to DataStructures. 2006-07-10 04:29:55 +00:00
Steve Checkoway c6ba8423b6 Change this interface to return the tap note itself, rather than just the result. 2006-07-10 04:29:19 +00:00
Steve Checkoway 746c21f44a Use DEFAULT_FAIL. 2006-07-10 01:29:21 +00:00
Steve Checkoway 40a80c01d9 Spacing cleanup. 2006-07-10 01:24:36 +00:00
Steve Checkoway bef808955d Cleanup DataStructures a bit. Put actors into the correct groups. 2006-07-10 01:02:23 +00:00
Steve Checkoway 3f2877bf76 Simplify. 2006-07-10 00:47:59 +00:00
Steve Checkoway ba99f1df55 Spacing cleanup. 2006-07-10 00:24:13 +00:00
Steve Checkoway 0b8e8f8512 Use a PlayerStageStats rather than indexing into STATSMAN with a PlayerNumber. 2006-07-10 00:02:07 +00:00
Steve Checkoway c090130108 Fix splitting composite NoteData. 2006-07-09 23:51:40 +00:00
Steve Checkoway eb764177f1 Overlapping NoteFields is not an option. Revert. 2006-07-09 21:51:04 +00:00
Steve Checkoway 18e26f35aa Use multiple PlayerInfos. Have them share the master player's NoteField. Pass input to the Player closest to the note. 2006-07-09 20:21:47 +00:00
Steve Checkoway 3d83bdf906 Allow one Player to share the NoteField of another Player. Also calculate the distance to the closest note or -1 if no note is close. 2006-07-09 20:20:57 +00:00
Steve Checkoway 04ad8b5a73 Allow NoteField sharing. The semantics of this is simple. In game play, everything but note data is handled by the shared NoteField. Only the NoteData for the field is drawn but it is drawn using the shared NoteField. 2006-07-09 20:19:54 +00:00
Steve Checkoway a92d8a244d Remove all notes except for that player's. 2006-07-09 20:15:51 +00:00
Steve Checkoway 4a324be6dd GetPlayerInfoForInput allows mapping inputs to PlayerInfos rather than just PlayerNumbers to PlayerInfos. 2006-07-09 20:14:06 +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
Glenn Maynard e830771ad9 Message_StorageDevicesChanged after UpdateAssignments (usually
happens anyway due to message queuing)
2006-07-09 19:53:19 +00:00
Glenn Maynard 580b21d0d3 pass iTimeout 2006-07-09 19:49:14 +00:00
Glenn Maynard ffb0e0d930 boilerplate 2006-07-09 19:48:10 +00:00
Steve Checkoway 392753bc22 Remove warning. (Adding -prune would have worked equally well.) 2006-07-08 19:35:48 +00:00
Chris Danford 1a902b3abd add pref for showing autoplay status 2006-07-08 09:05:44 +00:00
Chris Danford 9899308409 add pref for showing autoplay status 2006-07-08 08:32:54 +00:00
Steve Checkoway 9c045e6eb9 Comment. 2006-07-08 08:05:14 +00:00
Steve Checkoway d2429cb63b Fix standard deviation calculation. This could probably be done using accumulate, multiplies, minus, bind2nd, distance, and compose2, but that's probably less clear.
Something like
float fMean = calc_mean( pStart, pEnd );
return sqrtf( accumulate(pStart, pEnd, 0.0f, compose2(multiplies<float>(), bind2nd(minus<float>(), fMean), bind2nd(minus<float>(), fMean))) / distance(pStart, pEnd) );
These are easily templated too, if necessary.
2006-07-08 07:49:42 +00:00
Steve Checkoway 8c9577ffe9 Unneeded. Vectors are a type of EqualityComparable.
http://www.sgi.com/tech/stl/EqualityComparable.html
If a particular implementation of the stl isn't c++98 compliant, a global
template<typename T>
bool operator==( const vector<T> &a, const vector<T> &b)
can be written (and operator!= of course).
2006-07-08 07:10:13 +00:00
Steve Checkoway a942c021c7 Cleanup. 2006-07-08 07:07:50 +00:00
Steve Checkoway f66cb8c03c Simplify. Vectors are a type of EqualityComparable.
http://www.sgi.com/tech/stl/EqualityComparable.html
2006-07-08 07:07:37 +00:00
Steve Checkoway 6a67028283 Simplify and fix comment to reflect what's actually happening. 2006-07-08 06:43:18 +00:00
Steve Checkoway f7dd1a9a87 Cleanup. 2006-07-08 06:37:40 +00:00
Steve Checkoway 5afc2c41b9 Oops, readded removed comments. (No more coding while sick for me tonight, probably.) 2006-07-08 06:15:26 +00:00
Steve Checkoway 4130874a41 Disallow nonpositive tick counts and negative difficulties. (I'm not sure if the latter should be positive or merely nonnegative.) 2006-07-08 06:07:54 +00:00
Steve Checkoway 5774a0a70d Cleanup. 2006-07-08 06:00:37 +00:00
Jason Felds e1547e4bac Added alternate name for DIFFICULTY_EASY to account for recent arcade mixes. 2006-07-08 05:25:56 +00:00
Steve Checkoway 46611abb9a Don't crash on invalid ksf files.
00...
40...
00...
becomes
00...
10...
00...
2006-07-08 00:58:43 +00:00
Jason Felds f6d496c5cc Recognize STARTTIME2 and STARTTIME3 as legal tags: no need to LOG->Trace them. 2006-07-08 00:38:15 +00:00
Steve Checkoway fa4b293f83 Simplify. 2006-07-07 19:42:28 +00:00
Steve Checkoway 161aa4a035 cleanup 2006-07-07 19:34:51 +00:00
Glenn Maynard fce700c034 const 2006-07-07 18:46:08 +00:00
Glenn Maynard 7f463daafe remove experimental TotalError 2006-07-07 18:45:15 +00:00
Josh Allen 6b15224690 protocol update 2006-07-06 19:01:08 +00:00
Josh Allen de3be4c483 Updated to allow for sending of mine data. Also increment protocol version. 2006-07-06 17:55:44 +00:00
Josh Allen 6c80e0fa5a Send mine data to the server. 2006-07-06 17:53:49 +00:00
Chris Danford ca8a477158 add ValidateCourseSortOrder 2006-07-06 01:11:37 +00:00
Chris Danford 4adbb6e70b add PG Impact USB pad 2006-07-06 01:10:49 +00:00
Steve Checkoway e73050e6a3 Cleanup. 2006-07-05 23:18:20 +00:00
Steve Checkoway af860e6ccc Fix parameter. This worked before because it was being called with an argument of l. 2006-07-05 21:53:12 +00:00
Steve Checkoway 9a24232ec3 Cleanup. 2006-07-05 21:52:08 +00:00
Glenn Maynard 934b3f25c1 fix input check 2006-07-05 16:05:22 +00:00
Glenn Maynard 5cd1a60711 custom formatting. Use 'Format=FormatPercentScore' to use the old behavior. 2006-07-05 03:18:26 +00:00