Commit Graph

719 Commits

Author SHA1 Message Date
Glenn Maynard 6207f655e5 fix dep: ScreenManager shouldn't use GameState 2006-11-21 02:01:40 +00:00
Glenn Maynard 70d2d0dbc7 PlayerNumber is a simple, regular data structure, and is depended on
by lower level things (eg. InputMapper).  However, concepts like
"joined players" and "human players" is a high-level, GAMESTATE
concept, and engine stuff shouldn't depend on that.  Move the
GameState-depending stuff into GameState.  Move
IsAnyPlayerUsingMemoryCard as well (and rename to HumanPlayer),
to fix MemoryCardManager dep.
2006-11-21 01:32:05 +00:00
Chris Danford 2f7ac6aa3c Add m_ to StageStats and PlayerStageStats members. There are several methods of these classes with local variable names that are similar to the member names. m_ helps distinguish between those two types. 2006-11-14 11:13:21 +00:00
Glenn Maynard ec061bebc3 Message -> MessageID 2006-11-13 22:36:39 +00:00
Glenn Maynard ff4376868f FailEndOfSong sounds like "fail at the end of the song", but
actually means "fail immediately, but you can play the rest
of the song anyway".  Rename FAIL_END_OF_SONG to
FAIL_IMMEDIATE_CONTINUE, to reflect this better.
2006-11-09 07:49:49 +00:00
Glenn Maynard 93e85f9125 remove unused 2006-11-09 07:44:31 +00:00
Glenn Maynard 31534db436 if FAIL_OFF, don't set DANGER or DEAD. This means
GameState::AllAreInDangerOrWorse is always false in FAIL_OFF; if
emptying the lifebar doesn't fail you, you're not in danger from it.
2006-11-09 06:26:28 +00:00
Glenn Maynard d0ce8aef5b Simplify: ShowDanger is a Background preference, and should not
influence GameState.
2006-11-09 06:14:19 +00:00
Glenn Maynard 43b7c4ac7d m_HealthState is confusing; it's updated from other stats, and then the
original stats as well as m_HealthState are used for control logic.
Simplify; remove AllAreFailing, and figure it out directly.
2006-11-09 06:10:19 +00:00
Steve Checkoway 9ef4cf40e0 Scale GetTotalPossibleStepsSeconds() by fMusicRate. Fixes ComboGraph and GraphDisplay when using a different music rate. 2006-10-30 10:00:43 +00:00
John Bauer 37f9178f61 Add an "Autosync Tempo" feature. This uses a linear Least Squares
Regression to figure out a line through the user's step errors to minimize
that error.  It then uses the slope of that line to fix the tempo and the
intercept to fix the offset.  Stops are adjusted as if they were originally
calculated as a number of beats, ie the slope is also used to change
the stops.

Also fixed is a bug where the user doesn't get a chance to keep or
reject the sync changes when ESCing (ZZing) from a song.

R=glenn
2006-10-26 22:41:40 +00:00
Steve Checkoway 64138f7894 Enums. 2006-10-17 08:22:47 +00:00
Glenn Maynard 99678eb50f PlayerNumber 2006-10-17 07:54:04 +00:00
Glenn Maynard 0833c198e3 SetCurrentSong(nil) is valid 2006-10-15 01:47:22 +00:00
Glenn Maynard 78a91ba878 revert. You brought back a type I've been trying to remove. 2006-10-07 22:33:24 +00:00
Steve Checkoway 73663c4f8a CourseDifficulty. 2006-10-07 10:49:53 +00:00
Glenn Maynard 4bb479a445 standard enums for some preference types 2006-10-07 07:43:18 +00:00
Glenn Maynard 0493bc75a9 standard enums for some preference types 2006-10-07 05:52:45 +00:00
Glenn Maynard de6ca466d2 more enum standardization 2006-10-07 04:39:48 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Glenn Maynard 8a4ddd1515 Invalid 2006-10-07 04:13:43 +00:00
Glenn Maynard cb746be4c3 Invalid 2006-10-07 03:43:41 +00:00
Glenn Maynard d3c32bbc61 fix binding 2006-10-05 22:01:35 +00:00
Glenn Maynard 38b9f59b83 don't FinishStage in BeginStage 2006-10-04 02:51:32 +00:00
Glenn Maynard ecef158b06 eliminate InputMapper dependency on GameState. GameState
now tells InputMapper if it should join players.
2006-09-30 22:29:03 +00:00
Glenn Maynard d84d69edbc GetCurrentStyle 2006-09-30 22:24:11 +00:00
Glenn Maynard 0b45f5dd0a use SetCurrentStyle 2006-09-30 22:22:26 +00:00
Glenn Maynard fcffe3c80f add SetCurrentStyle 2006-09-30 22:15:22 +00:00
Glenn Maynard 5e99a1c9e9 remove GameState::PlayerUsingBothSides 2006-09-30 02:57:05 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard e0bf203af4 testing simpler boilerplate 2006-09-27 19:02:46 +00:00
Glenn Maynard c1194da0d0 bind MultiPlayer 2006-09-27 06:18:11 +00:00
Glenn Maynard 51d22ce2f4 update binding 2006-09-27 01:48:30 +00:00
Glenn Maynard 9c9440c8a0 PlayMode_Invalid 2006-09-26 20:32:41 +00:00
Glenn Maynard f806ec5936 StepsType_Invalid 2006-09-26 20:28:46 +00:00
Glenn Maynard e8a3c636f6 SortOrder_INVALID, NUM_SortOrder 2006-09-26 07:42:55 +00:00
Glenn Maynard 14b51a70d7 update Stage 2006-09-26 05:08:52 +00:00
Glenn Maynard 3dac292642 update ModsLevel use 2006-09-26 04:03:59 +00:00
Glenn Maynard 39ac2da962 ThemeMetric<Grade>, ThemeMetric<TapNoteScore> 2006-09-26 03:30:20 +00:00
Steve Checkoway a4aa69b148 Remove ThemeMetricEnum. Since all metrics are evaluated as lua, use lua integer constants. 2006-09-23 07:21:26 +00:00
Glenn Maynard 578c6d5726 simplify singleton registration 2006-09-21 04:42:45 +00:00
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Steve Checkoway ac68dd3c57 Don't use ints for enums. 2006-09-15 04:40:27 +00:00
Jason Felds b2a4b78522 Allow each extra stage to have different Grade Tier passing requirements. 2006-09-15 03:51:54 +00:00
Glenn Maynard c559ff69b6 IsHumanPlayer( PLAYER_INVALID ) always false, so we can
do IsHumanPlayer(input.pn) without an extra check
2006-09-14 20:26:17 +00:00
Glenn Maynard dc79a12a17 use PushSelf 2006-08-20 04:40:02 +00:00
Steve Checkoway c6270183c2 Read the metric before it is used. 2006-08-19 09:00:25 +00:00
Steve Checkoway be1e448cb2 Extra stage isn't the only thing that might want to force stage mods. 2006-08-18 01:26:50 +00:00
Steve Checkoway 0ab5be64af Lua bindings. 2006-08-18 00:11:30 +00:00
Glenn Maynard b755a68c27 simplify (not a worthwhile optimization) 2006-08-17 00:39:53 +00:00