add Course::GetPlayMode
This commit is contained in:
@@ -94,6 +94,19 @@ Song *Course::FindSong(CString sGroup, CString sSong) const
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PlayMode Course::GetPlayMode() const
|
||||
{
|
||||
if( IsNonstop() )
|
||||
return PLAY_MODE_NONSTOP;
|
||||
if( IsOni() )
|
||||
return PLAY_MODE_ONI;
|
||||
if( IsEndless() )
|
||||
return PLAY_MODE_ENDLESS;
|
||||
|
||||
ASSERT(0);
|
||||
return PLAY_MODE_NONSTOP;
|
||||
}
|
||||
|
||||
void Course::LoadFromCRSFile( CString sPath )
|
||||
{
|
||||
m_sPath = sPath; // save path
|
||||
|
||||
@@ -83,6 +83,7 @@ public:
|
||||
bool IsNonstop() const { return !m_bRepeat && m_iLives <= 0; } // use bar life meter
|
||||
bool IsOni() const { return !m_bRepeat && m_iLives > 0; } // use battery life meter
|
||||
bool IsEndless() const { return m_bRepeat; }
|
||||
PlayMode GetPlayMode() const;
|
||||
|
||||
void LoadFromCRSFile( CString sPath );
|
||||
void Save();
|
||||
|
||||
Reference in New Issue
Block a user