add Course::GetPlayMode

This commit is contained in:
Glenn Maynard
2003-07-20 01:54:17 +00:00
parent 4b198a5dd4
commit 301ad56516
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -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
+1
View File
@@ -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();