add StyleDef::NumSidesJoinedToPlay

This commit is contained in:
Glenn Maynard
2003-09-23 03:55:18 +00:00
parent ba28f7f57f
commit a513f1f683
2 changed files with 18 additions and 0 deletions
+16
View File
@@ -99,3 +99,19 @@ void StyleDef::GetMinAndMaxColX( PlayerNumber pn, float& fMixXOut, float& fMaxXO
fMaxXOut = max( fMaxXOut, m_ColumnInfo[pn][i].fXOffset );
}
}
int StyleDef::NumSidesJoinedToPlay() const
{
switch( m_StyleType )
{
case StyleDef::ONE_PLAYER_ONE_CREDIT:
return 1;
case StyleDef::TWO_PLAYERS_TWO_CREDITS:
case StyleDef::ONE_PLAYER_TWO_CREDITS:
return 2;
default:
ASSERT(0);
return 1;
}
}
+2
View File
@@ -78,6 +78,8 @@ public:
bool MatchesNotesType( StepsType type ) const;
void GetMinAndMaxColX( PlayerNumber pn, float& fMixXOut, float& fMaxXOut ) const;
int NumSidesJoinedToPlay() const;
};