This commit is contained in:
Glenn Maynard
2005-01-03 22:44:19 +00:00
parent 4b7ce342f5
commit 8cba265a01
9 changed files with 21 additions and 7 deletions
+5
View File
@@ -37,6 +37,11 @@ REGISTER_SCREEN_CLASS( ScreenDemonstration );
ScreenDemonstration::ScreenDemonstration( CString sName ) : ScreenJukebox( sName, PrepareForDemonstration() ) // this is a hack to get some code to execute before the ScreenGameplay constructor
{
LOG->Trace( "ScreenDemonstration::ScreenDemonstration()" );
}
void ScreenDemonstration::Init()
{
ScreenJukebox::Init();
if( GAMESTATE->m_pCurSong == NULL ) // we didn't find a song.
{
+1
View File
@@ -8,6 +8,7 @@ class ScreenDemonstration : public ScreenJukebox
{
public:
ScreenDemonstration( CString sName );
virtual void Init();
virtual void HandleScreenMessage( const ScreenMessage SM );
+3 -3
View File
@@ -87,13 +87,13 @@ const ScreenMessage SM_PlayCheer = ScreenMessage(SM_User+6);
REGISTER_SCREEN_CLASS( ScreenEvaluation );
ScreenEvaluation::ScreenEvaluation( CString sClassName ) : ScreenWithMenuElements(sClassName)
{
LOG->Trace( "ScreenEvaluation::ScreenEvaluation" );
Init(); // work around horrible gcc bug 3187
LOG->Trace( "exiting ScreenEvaluation::ScreenEvalaution" );
LOG->Trace( "ScreenEvaluation::ScreenEvaluation" );
}
void ScreenEvaluation::Init()
{
Screen::Init();
//
// debugging
//
+1 -1
View File
@@ -50,7 +50,7 @@ public:
virtual void MenuStart( PlayerNumber pn );
protected:
void Init();
virtual void Init();
void CommitScores(
const StageStats &stageStats,
int iPersonalHighScoreIndexOut[NUM_PLAYERS],
+2 -1
View File
@@ -89,11 +89,12 @@ REGISTER_SCREEN_CLASS( ScreenGameplay );
ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sName)
{
m_bDemonstration = bDemonstration;
Init(); // work around horrible gcc bug 3187
}
void ScreenGameplay::Init()
{
Screen::Init();
if( m_bDemonstration )
LIGHTSMAN->SetLightsMode( LIGHTSMODE_DEMONSTRATION );
else
+1 -1
View File
@@ -56,7 +56,7 @@ class ScreenGameplay : public Screen
{
public:
ScreenGameplay( CString sName, bool bDemonstration = false );
void Init();
virtual void Init();
virtual ~ScreenGameplay();
virtual void Update( float fDeltaTime );
+2 -1
View File
@@ -39,11 +39,12 @@ const ScreenMessage SM_GoToScreenAfterBack = ScreenMessage(SM_User+23);
REGISTER_SCREEN_CLASS( ScreenGameplayMultiplayer );
ScreenGameplayMultiplayer::ScreenGameplayMultiplayer( CString sName, bool bDemonstration ) : Screen(sName)
{
Init(); // work around horrible gcc bug 3187
}
void ScreenGameplayMultiplayer::Init()
{
Screen::Init();
m_pSoundMusic = NULL;
/* We do this ourself. */
+5
View File
@@ -167,6 +167,11 @@ bool ScreenJukebox::PrepareForJukebox( bool bDemonstration ) // always return t
ScreenJukebox::ScreenJukebox( CString sName, bool bDemonstration ) : ScreenGameplay( "ScreenGameplay", PrepareForJukebox(bDemonstration) ) // this is a hack to get some code to execute before the ScreenGameplay constructor
{
LOG->Trace( "ScreenJukebox::ScreenJukebox()" );
}
void ScreenJukebox::Init()
{
ScreenGameplay::Init();
if( GAMESTATE->m_pCurSong == NULL ) // we didn't find a song.
{
+1
View File
@@ -11,6 +11,7 @@ class ScreenJukebox : public ScreenGameplay
{
public:
ScreenJukebox( CString sName, bool bDemonstration = false );
virtual void Init();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM );