Steve Checkoway
73663c4f8a
CourseDifficulty.
2006-10-07 10:49:53 +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
a31f76e9ad
allocate GameCommand as needed
2006-10-01 20:13:27 +00:00
Glenn Maynard
0b45f5dd0a
use SetCurrentStyle
2006-09-30 22:22:26 +00:00
Glenn Maynard
a8dd0c5fdc
GetCurrentStyle()
2006-09-30 22:13:20 +00:00
Glenn Maynard
a010517276
Don't change the game with GameCommand. It's not a simple
...
game mode; it normally can change the theme and input maps.
2006-09-30 07:04:26 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
ea7c05cee5
simpler Lua boilerplate
2006-09-27 19:53:05 +00:00
Glenn Maynard
9c9440c8a0
PlayMode_Invalid
2006-09-26 20:32:41 +00:00
Glenn Maynard
e8a3c636f6
SortOrder_INVALID, NUM_SortOrder
2006-09-26 07:42:55 +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
Glenn Maynard
e7fdfa2132
prefer GAMESTATE->JoinPlayer to setting GAMESTATE->m_bSideIsJoined manually
2006-09-15 05:56:43 +00:00
Steve Checkoway
0cb22fb806
Apparently VC doesn't like using (group).GroupType as a type (and frankly, I couldn't get g++ to accept it outside of StepMania, either) so use the macros with PO and SO prefixes for PlayerOptions and SongOptions, respectively. Also, pointers to data members can't point to elements of an array (no idea why gcc was allowing it before) so use Assign_n and pass the index separately. (Very annoying, typeof() should really be in the standard.)
2006-08-05 08:02:49 +00:00
Steve Checkoway
1802e603b3
Update to use the new ModsGroup api.
2006-08-05 04:47:01 +00:00
Chris Danford
7ac45c24e4
save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore.
2006-08-05 02:38:05 +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
Steve Checkoway
6b38a1bea5
TWO_PLAYERS_SHARED_SIDES.
2006-06-24 00:09:50 +00:00
Chris Danford
af3e1c571c
move Steps searching out of song into SongUtil so that it can be shared with CourseEntry
2006-06-13 01:10:37 +00:00
Chris Danford
5de6202367
add url
2006-06-12 09:15:27 +00:00
Chris Danford
82835dae6a
change unlock entry IDs to strings so that auto generated entry ids won't shift around and unlock different things when new songs are added
2006-05-03 22:56:23 +00:00
Chris Danford
8814cb747d
add courses preferred sort
2006-05-01 21:49:59 +00:00
Chris Danford
c52ab6fa5e
Code -> UnlockEntryID
...
UnlockedSongs -> UnlockedEntryIDs
UnlockIndex -> UnlockEntryID
2006-01-28 22:08:16 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
e341ce46bb
remove unused
2006-01-15 08:12:27 +00:00
Glenn Maynard
55efe79054
Most of the time we use a GameCommand to store state, we don't want
...
Apply() itself to load the screen; we want to stuff it in m_sNextScreen
and let the normal screen loading code path do it. That's why we have
GetAndClearScreen.
However, GetAndClearScreen is a non-const, and applying a GameCommand
should be a const operation. It doesn't get along well with screen
reuse; once you've applied it, you've destroyed the GameCommand.
Instead, hold a flag indicating whether or not to apply screens, and
set this true on load when we handle it manually. We should probably
*always* do this, and never load a screen within GameCommand itself, so
this may go away soon (always on).
2006-01-15 08:00:37 +00:00
Glenn Maynard
d8ae5df6ef
fix leak
2006-01-14 06:46:15 +00:00
Glenn Maynard
9c867fdd70
We have two "gamestate Lua environments": mapEnv and m_Environment. The
...
former is a map<CString,CString>; the latter is a Lua table. The former
is reset on gamestate reset, the latter is not.
Merge the map into the table, and eliminate it. We only need one, and
it makes sense for a Lua environment to be a Lua table.
Do reset the table on Reset. Otherwise, there's little point; if you want
to store data inside Lua, you don't need GameState to help.
2006-01-13 21:49:35 +00:00
Chris Danford
800158e185
move floating globals into a namespace
2005-12-02 01:16:28 +00:00
Chris Danford
557ae44dc7
re-add applydefaultoptions
2005-11-30 04:27:10 +00:00
Chris Danford
cd9cf4c1e2
move some service menu actions from GameCommand into ScreenServiceAction
2005-11-29 23:15:11 +00:00
Chris Danford
6e5b3a5ed8
fix PrefsManager::m_sCurrentGame not current, so GamePrefs from Static.ini weren't being used
2005-10-28 01:44:19 +00:00
Glenn Maynard
4c62c63e84
move m_sDefaultLocalProfileID into ProfileManager
2005-10-27 17:47:42 +00:00
Chris Danford
112564dc99
fix [Common] DefaultModifers not being applied in most places
2005-10-27 07:51:37 +00:00
Chris Danford
5d7885c764
move game prefs into PrefsManager
2005-10-27 04:54:45 +00:00
Chris Danford
e00a57e05e
use Preference1D
2005-10-26 23:09:56 +00:00
Steve Checkoway
01d315364a
Fix gcc (3.3) compile.
2005-10-17 06:55:58 +00:00
Glenn Maynard
f56cea11aa
Fix "style,single;song,foo;steps,fum;screen,ScreenFoo" causing an assert
...
in GetAndClearScreen. We can't LoadOne each part without actually applying
each first; "steps" will fail due to style and song not actually having
been set.
2005-10-16 01:04:55 +00:00
Glenn Maynard
346376a96d
fix comment
2005-09-11 04:34:24 +00:00
Chris Danford
65d71a4f23
expermienting with DEFINE_METHOD macro for Lua methods
2005-09-10 02:47:04 +00:00
Glenn Maynard
781017c4c0
ChooseRandomMofifiers -> ChooseRandomModifiers
2005-09-08 01:06:01 +00:00
Chris Danford
ae8f754b1f
add Lua method bindings
2005-09-07 22:05:41 +00:00
Glenn Maynard
0022bc3338
cleanup
2005-09-03 02:08:27 +00:00
Chris Danford
b9f82be7a9
add separate MultiPlayer value. index = enabled player index (max num joined players). multiPlayer = MultiPlayer value for this player (max NUM_MultiPlayer)
2005-08-26 17:34:42 +00:00
Chris Danford
70d1f0eadb
use mixed case values for enum Grade so that enum matches strings matches Lua
2005-08-14 11:38:31 +00:00
Chris Danford
ff7c122289
cleanup: move ProfileLoadResult into GameConstantsAndTypes so we don't take dependencies on Profile.h for ProfileLoadResult
2005-08-13 06:59:27 +00:00
Glenn Maynard
18911711c4
split FillProfile
2005-08-13 00:10:18 +00:00
Glenn Maynard
095513c3d7
hide more
2005-08-12 03:10:53 +00:00