Add ModeChoice::IsZero.
This commit is contained in:
@@ -253,3 +253,17 @@ void ModeChoice::Apply( PlayerNumber pn ) const
|
||||
PROFILEMAN->TryLoadProfile( pn );
|
||||
}
|
||||
}
|
||||
|
||||
bool ModeChoice::IsZero() const
|
||||
{
|
||||
if( m_game != GAME_INVALID ||
|
||||
m_pm != PLAY_MODE_INVALID ||
|
||||
m_style != STYLE_INVALID ||
|
||||
m_dc != DIFFICULTY_INVALID ||
|
||||
m_sAnnouncer != "" ||
|
||||
m_sModifiers != "" )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ struct ModeChoice // used in SelectMode
|
||||
bool DescribesCurrentMode( PlayerNumber pn ) const;
|
||||
bool DescribesCurrentModeForAllPlayers() const;
|
||||
bool IsPlayable( CString *why = NULL ) const;
|
||||
bool IsZero() const;
|
||||
|
||||
bool m_bInvalid;
|
||||
int m_iIndex;
|
||||
|
||||
Reference in New Issue
Block a user