add StyleDef::NumSidesJoinedToPlay
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,8 @@ public:
|
||||
bool MatchesNotesType( StepsType type ) const;
|
||||
|
||||
void GetMinAndMaxColX( PlayerNumber pn, float& fMixXOut, float& fMaxXOut ) const;
|
||||
|
||||
int NumSidesJoinedToPlay() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user