name cleanup: State->Screen

This commit is contained in:
Chris Danford
2004-12-05 11:59:39 +00:00
parent 2d7d2a054b
commit 730787aacb
12 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -58,14 +58,14 @@ ScreenNetworkOptions::ScreenNetworkOptions( CString sClassName ) : ScreenOptions
} }
void ScreenNetworkOptions::GoToPrevState() void ScreenNetworkOptions::GoToPrevScreen()
{ {
SCREENMAN->SetNewScreen( "ScreenOptionsMenu" ); SCREENMAN->SetNewScreen( "ScreenOptionsMenu" );
} }
void ScreenNetworkOptions::GoToNextState() void ScreenNetworkOptions::GoToNextScreen()
{ {
GoToPrevState(); GoToPrevScreen();
} }
void ScreenNetworkOptions::HandleScreenMessage( const ScreenMessage SM ) void ScreenNetworkOptions::HandleScreenMessage( const ScreenMessage SM )
+2 -2
View File
@@ -16,8 +16,8 @@ private:
void ImportOptions(); void ImportOptions();
void ExportOptions(); void ExportOptions();
void GoToNextState(); void GoToNextScreen();
void GoToPrevState(); void GoToPrevScreen();
void UpdateConnectStatus(); void UpdateConnectStatus();
+6 -6
View File
@@ -899,15 +899,15 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
switch( SM ) switch( SM )
{ {
case SM_MenuTimer: case SM_MenuTimer:
StartGoToNextState(); StartGoToNextScreen();
break; break;
case SM_GoToPrevScreen: case SM_GoToPrevScreen:
// this->ExportOptions(); // Don't save options if we're going back! // this->ExportOptions(); // Don't save options if we're going back!
this->GoToPrevState(); this->GoToPrevScreen();
break; break;
case SM_GoToNextScreen: case SM_GoToNextScreen:
this->ExportOptions(); this->ExportOptions();
this->GoToNextState(); this->GoToNextScreen();
break; break;
case SM_BeginFadingOut: case SM_BeginFadingOut:
if(IsTransitioning()) if(IsTransitioning())
@@ -1118,7 +1118,7 @@ void ScreenOptions::MenuBack( PlayerNumber pn )
Back( SM_GoToPrevScreen ); Back( SM_GoToPrevScreen );
} }
void ScreenOptions::StartGoToNextState() void ScreenOptions::StartGoToNextScreen()
{ {
this->PostScreenMessage( SM_BeginFadingOut, 0 ); this->PostScreenMessage( SM_BeginFadingOut, 0 );
} }
@@ -1174,7 +1174,7 @@ void ScreenOptions::MenuStart( PlayerNumber pn, const InputEventType type )
{ {
/* Don't accept START to go to the next screen if we're still transitioning in. */ /* Don't accept START to go to the next screen if we're still transitioning in. */
if( AllAreOnExit() && type == IET_FIRST_PRESS && !IsTransitioning() ) if( AllAreOnExit() && type == IET_FIRST_PRESS && !IsTransitioning() )
StartGoToNextState(); StartGoToNextScreen();
return; return;
} }
@@ -1232,7 +1232,7 @@ void ScreenOptions::MenuStart( PlayerNumber pn, const InputEventType type )
case NAV_THREE_KEY_MENU: case NAV_THREE_KEY_MENU:
/* Don't accept START to go to the next screen if we're still transitioning in. */ /* Don't accept START to go to the next screen if we're still transitioning in. */
if( type == IET_FIRST_PRESS && !IsTransitioning() ) if( type == IET_FIRST_PRESS && !IsTransitioning() )
StartGoToNextState(); StartGoToNextScreen();
break; break;
case NAV_FIVE_KEY: case NAV_FIVE_KEY:
/* Jump to the exit row. (If everyone's already on the exit row, then /* Jump to the exit row. (If everyone's already on the exit row, then
+3 -3
View File
@@ -70,10 +70,10 @@ protected:
virtual void MenuBack( PlayerNumber pn ); virtual void MenuBack( PlayerNumber pn );
virtual void MenuStart( PlayerNumber pn, const InputEventType type ); virtual void MenuStart( PlayerNumber pn, const InputEventType type );
void StartGoToNextState(); void StartGoToNextScreen();
virtual void GoToNextState() = 0; virtual void GoToNextScreen() = 0;
virtual void GoToPrevState() = 0; virtual void GoToPrevScreen() = 0;
void MenuLeft( PlayerNumber pn, const InputEventType type ) { ChangeValueInRow(pn,-1,type != IET_FIRST_PRESS); } void MenuLeft( PlayerNumber pn, const InputEventType type ) { ChangeValueInRow(pn,-1,type != IET_FIRST_PRESS); }
void MenuRight( PlayerNumber pn, const InputEventType type ) { ChangeValueInRow(pn,+1,type != IET_FIRST_PRESS); } void MenuRight( PlayerNumber pn, const InputEventType type ) { ChangeValueInRow(pn,+1,type != IET_FIRST_PRESS); }
+2 -2
View File
@@ -571,7 +571,7 @@ void ScreenOptionsMaster::ExportOptions()
CHECKPOINT; CHECKPOINT;
} }
void ScreenOptionsMaster::GoToNextState() void ScreenOptionsMaster::GoToNextScreen()
{ {
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
SCREENMAN->PopTopScreen(); SCREENMAN->PopTopScreen();
@@ -579,7 +579,7 @@ void ScreenOptionsMaster::GoToNextState()
SCREENMAN->SetNewScreen( m_sNextScreen ); SCREENMAN->SetNewScreen( m_sNextScreen );
} }
void ScreenOptionsMaster::GoToPrevState() void ScreenOptionsMaster::GoToPrevScreen()
{ {
/* XXX: A better way to handle this would be to check if we're a pushed screen. */ /* XXX: A better way to handle this would be to check if we're a pushed screen. */
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
+2 -2
View File
@@ -54,8 +54,8 @@ protected:
virtual void ExportOptions(); virtual void ExportOptions();
virtual void ImportOptionsForPlayer( PlayerNumber pn ); // used by ScreenPlayerOptions virtual void ImportOptionsForPlayer( PlayerNumber pn ); // used by ScreenPlayerOptions
virtual void GoToNextState(); virtual void GoToNextScreen();
virtual void GoToPrevState(); virtual void GoToPrevScreen();
virtual void RefreshIcons(); virtual void RefreshIcons();
}; };
+2 -2
View File
@@ -57,7 +57,7 @@ ScreenPlayerOptions::ScreenPlayerOptions( CString sClassName ) :
} }
void ScreenPlayerOptions::GoToPrevState() void ScreenPlayerOptions::GoToPrevScreen()
{ {
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
SCREENMAN->PopTopScreen(); SCREENMAN->PopTopScreen();
@@ -65,7 +65,7 @@ void ScreenPlayerOptions::GoToPrevState()
SCREENMAN->SetNewScreen( PREV_SCREEN ); SCREENMAN->SetNewScreen( PREV_SCREEN );
} }
void ScreenPlayerOptions::GoToNextState() void ScreenPlayerOptions::GoToNextScreen()
{ {
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
SCREENMAN->PopTopScreen(); SCREENMAN->PopTopScreen();
+2 -2
View File
@@ -14,8 +14,8 @@ public:
virtual void HandleScreenMessage( const ScreenMessage SM ); virtual void HandleScreenMessage( const ScreenMessage SM );
private: private:
void GoToNextState(); void GoToNextScreen();
void GoToPrevState(); void GoToPrevScreen();
void UpdateDisqualified(); void UpdateDisqualified();
+3 -3
View File
@@ -113,15 +113,15 @@ void ScreenProfileOptions::ExportOptions()
PREFSMAN->m_sDefaultLocalProfileID[PLAYER_2] = ""; PREFSMAN->m_sDefaultLocalProfileID[PLAYER_2] = "";
} }
void ScreenProfileOptions::GoToPrevState() void ScreenProfileOptions::GoToPrevScreen()
{ {
SCREENMAN->SetNewScreen( "ScreenOptionsMenu" ); SCREENMAN->SetNewScreen( "ScreenOptionsMenu" );
} }
void ScreenProfileOptions::GoToNextState() void ScreenProfileOptions::GoToNextScreen()
{ {
PREFSMAN->SaveGlobalPrefsToDisk(); PREFSMAN->SaveGlobalPrefsToDisk();
GoToPrevState(); GoToPrevScreen();
} }
void ScreenProfileOptions::HandleScreenMessage( const ScreenMessage SM ) void ScreenProfileOptions::HandleScreenMessage( const ScreenMessage SM )
+2 -2
View File
@@ -16,8 +16,8 @@ private:
void ImportOptions(); void ImportOptions();
void ExportOptions(); void ExportOptions();
void GoToNextState(); void GoToNextScreen();
void GoToPrevState(); void GoToPrevScreen();
CString GetSelectedProfileID(); CString GetSelectedProfileID();
CString GetSelectedProfileName(); CString GetSelectedProfileName();
+2 -2
View File
@@ -29,7 +29,7 @@ ScreenSongOptions::ScreenSongOptions( CString sClassName ) :
} }
} }
void ScreenSongOptions::GoToPrevState() void ScreenSongOptions::GoToPrevScreen()
{ {
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
SCREENMAN->PopTopScreen( SM_None ); SCREENMAN->PopTopScreen( SM_None );
@@ -37,7 +37,7 @@ void ScreenSongOptions::GoToPrevState()
SCREENMAN->SetNewScreen( PREV_SCREEN ); SCREENMAN->SetNewScreen( PREV_SCREEN );
} }
void ScreenSongOptions::GoToNextState() void ScreenSongOptions::GoToNextScreen()
{ {
if( GAMESTATE->m_bEditing ) if( GAMESTATE->m_bEditing )
SCREENMAN->PopTopScreen(); SCREENMAN->PopTopScreen();
+2 -2
View File
@@ -10,8 +10,8 @@ public:
static CString GetNextScreen(); static CString GetNextScreen();
private: private:
void GoToNextState(); void GoToNextScreen();
void GoToPrevState(); void GoToPrevScreen();
}; };
#endif #endif