Commit Graph
19057 Commits
Author SHA1 Message Date
Steve Checkoway e65388190f compile fix. 2006-07-14 04:21:09 +00:00
Steve Checkoway 743d2b9697 Change the api to take a NoteData and a row. Let the score keepers decide what they want to do with the row. 2006-07-14 04:19:30 +00:00
Steve Checkoway af1652ef28 Add a PlayerNumber. If pn = PLAYER_INVALID, then count all tap notes, irrespective of player. If tn.pn = PLAYER_INVALID, count it. 2006-07-14 04:14:51 +00:00
Steve Checkoway cae6da3f7a Use ScoreKeeperShared. 2006-07-13 08:38:21 +00:00
Steve Checkoway b5a3c9867e ScoreKeeper for use with multiple players but only one Player. It's not complete and something about this is giving each player the same number of each judgment (except for HNS_Held for some reason). 2006-07-13 08:38:08 +00:00
Glenn Maynard 91bd33887e thanks@broken sourceforge 2006-07-13 08:07:11 +00:00
Steve Checkoway 365b370aae Load the players ourself. Only show judgment for the master player. 2006-07-13 07:33:10 +00:00
Steve Checkoway ccba1e80be Assert. 2006-07-13 07:28:08 +00:00
Steve Checkoway 5c1e528e8b Load hold judgments. 2006-07-13 07:27:47 +00:00
Steve Checkoway e349c58ba9 Fix compile for systems that use pthreads but don't define UNIX and don't have clockid_t defined. If necessary, this can be redone in a more general way using configure.ac. 2006-07-13 06:31:10 +00:00
Steve Checkoway 10a3791564 Spacing. 2006-07-13 05:52:56 +00:00
Chris Danford f49a4163b9 add binding for MultiPlayerToString 2006-07-12 08:32:10 +00:00
Glenn Maynard 1d168ff4d4 cleanup 2006-07-12 01:53:58 +00:00
Glenn Maynard 6e245f46ae use pthread_condattr_setclock to avoid race conditions with the clock 2006-07-12 01:47:10 +00:00
Glenn Maynard 22dc123b35 expose the selected clock (only for other arch classes) 2006-07-12 01:44:24 +00:00
Glenn Maynard ffe9ca65e6 somewhat more complete xml binding 2006-07-11 17:19:21 +00:00
Glenn Maynard d46b023090 somewhat more complete xml binding 2006-07-11 17:10:16 +00:00
Glenn Maynard e066ea44e8 redundant 2006-07-11 17:00:52 +00:00
Glenn Maynard 020d263cdd remove unused "BeginnerLabel" 2006-07-11 16:55:38 +00:00
Chris Danford 29d77f5c8c search songs by a genre list
move MenuDir to SSMaster header
GoalType name cleanup
2006-07-11 06:51:46 +00:00
Jason Felds a3b803e9e4 Add real name to copyright notice. 2006-07-11 04:13:19 +00:00
Jason Felds f8f0aa6c34 Account for Nightmare difficulty files (Nightmare is always double). 2006-07-11 03:21:34 +00:00
Jason Felds 146604972e Removed self from copyright. 2006-07-10 22:04:10 +00:00
Jason Felds d12347f246 Greatly improved BPM change formula. There are still minor flubs, but it's more accurate than ever. 2006-07-10 19:01:52 +00:00
Steve Checkoway 81046111f4 Implement SaveStats and direct all input to the master player. 2006-07-10 05:18:35 +00:00
Steve Checkoway 1aa51dd1d1 Change ScoreKeeper's api to take TapNotes instead of the scores. 2006-07-10 05:15:52 +00:00
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 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 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
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