Actor tween cleanup

Actor scipting with Command()
modularizing menu widgets into "ModeSelector"s
move animations into metrics
This commit is contained in:
Chris Danford
2003-03-02 01:43:33 +00:00
parent 0b9448cf66
commit a696414cac
62 changed files with 1768 additions and 1272 deletions
+13
View File
@@ -23,6 +23,7 @@
#include "SongManager.h"
#include "Notes.h"
#include "NoteSkinManager.h"
#include "ModeChoice.h"
GameState* GAMESTATE = NULL; // global and accessable from anywhere in our program
@@ -240,6 +241,18 @@ const StyleDef* GameState::GetCurrentStyleDef()
return GAMEMAN->GetStyleDefForStyle( m_CurStyle );
}
void GameState::ApplyModeChoice( const ModeChoice* pModeChoice, PlayerNumber pn )
{
if( pModeChoice->game != GAME_INVALID )
m_CurGame = pModeChoice->game;
if( pModeChoice->pm != PLAY_MODE_INVALID )
m_PlayMode = pModeChoice->pm;
if( pModeChoice->style != STYLE_INVALID )
m_CurStyle = pModeChoice->style;
if( pModeChoice->dc != DIFFICULTY_INVALID && pn != PLAYER_INVALID )
m_PreferredDifficulty[pn] = pModeChoice->dc;
}
bool GameState::IsPlayerEnabled( PlayerNumber pn )
{
if( m_CurStyle == STYLE_INVALID ) // if no style set (we're in TitleMenu, ConfigInstruments or something)