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