StringToInputMode

This commit is contained in:
Glenn Maynard
2006-01-16 02:34:09 +00:00
parent 1121b8dc5f
commit 87fed49701
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -72,6 +72,12 @@ static CString OPTION_EXPLANATION( CString s )
return THEME->GetString("OptionExplanations",s);
}
static const char *InputModeNames[] = {
"Individual",
"Together"
};
StringToX( InputMode );
//REGISTER_SCREEN_CLASS( ScreenOptions ); // can't be instantiated
ScreenOptions::ScreenOptions()
{
+4 -1
View File
@@ -20,8 +20,11 @@ AutoScreenMessage( SM_ExportOptions )
enum InputMode
{
INPUTMODE_INDIVIDUAL, // each player controls their own cursor
INPUTMODE_SHARE_CURSOR // both players control the same cursor
INPUTMODE_SHARE_CURSOR, // both players control the same cursor
NUM_InputMode,
InputMode_Invalid
};
InputMode StringToInputMode( const CString& str );
#define FOREACH_OptionsPlayer( pn ) \
for( PlayerNumber pn=GetNextHumanPlayer((PlayerNumber)-1); pn!=PLAYER_INVALID && (m_InputMode==INPUTMODE_INDIVIDUAL || pn==0); pn=GetNextHumanPlayer(pn) )