TWO_PLAYERS_SHARED_SIDES.

This commit is contained in:
Steve Checkoway
2006-06-24 00:09:50 +00:00
parent fc104372cf
commit 6b38a1bea5
5 changed files with 16 additions and 5 deletions
+9 -1
View File
@@ -857,7 +857,14 @@ int GameState::GetNumPlayersEnabled() const
bool GameState::PlayerUsingBothSides() const
{
ASSERT( this->GetCurrentStyle() != NULL );
return this->GetCurrentStyle()->m_StyleType == ONE_PLAYER_TWO_SIDES;
switch( GetCurrentStyle()->m_StyleType )
{
case ONE_PLAYER_TWO_SIDES:
case TWO_PLAYERS_SHARED_SIDES:
return true;
default:
return false;
}
}
bool GameState::IsHumanPlayer( PlayerNumber pn ) const
@@ -873,6 +880,7 @@ bool GameState::IsHumanPlayer( PlayerNumber pn ) const
switch( GetCurrentStyle()->m_StyleType )
{
case TWO_PLAYERS_TWO_SIDES:
case TWO_PLAYERS_SHARED_SIDES:
return true;
case ONE_PLAYER_ONE_SIDE:
case ONE_PLAYER_TWO_SIDES: