diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 3cb673e5a8..37aa80f5ea 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -23,6 +23,16 @@ #include "SongOptions.h" #include "RageUtil.h" +Course::Course() +{ + m_iStages = 0; + m_bRepeat = false; + m_bRandomize = false; + m_iLives = 4; + m_iExtra = 0; + for( int i=0; i &apSongs ) { @@ -206,6 +216,31 @@ Notes* Course::GetNotesForStage( int iStage ) return NULL; } +Song *Course::GetSong( int iStage ) +{ + return m_apSongs[iStage]; +} + +CString Course::GetDescription( int iStage ) +{ + return m_asDescriptions[iStage]; +} + +CString Course::GetModifiers( int iStage ) +{ + return m_asModifiers[iStage]; +} + +void Course::AddStage( Song* pSong, CString sDescription, CString sModifiers ) +{ + ASSERT( m_iStages <= MAX_COURSE_STAGES - 1 ); + m_apSongs[m_iStages] = pSong; + m_asDescriptions[m_iStages] = sDescription; + m_asModifiers[m_iStages] = sModifiers; + SongOrdering[m_iStages] = m_iStages; + + m_iStages++; +} /* When bShuffled is true, returns courses in the song ordering list. */ void Course::GetSongAndNotesForCurrentStyle( diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 890eb065be..45158d5149 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -24,16 +24,7 @@ const int MAX_COURSE_STAGES = 300; // Increased since the user can place all Bem class Course { public: - Course() - { - m_iStages = 0; - m_bRepeat = false; - m_bRandomize = false; - m_iLives = 4; - m_iExtra = 0; - for( int i=0; i &apSongs ); void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray &apSongsInGroup ); - - void AddStage( Song* pSong, CString sDescription, CString sModifiers ) - { - ASSERT( m_iStages <= MAX_COURSE_STAGES - 1 ); - m_apSongs[m_iStages] = pSong; - m_asDescriptions[m_iStages] = sDescription; - m_asModifiers[m_iStages] = sModifiers; - SongOrdering[m_iStages] = m_iStages; - - m_iStages++; - } + void AddStage( Song* pSong, CString sDescription, CString sModifiers ); void GetSongAndNotesForCurrentStyle( CArray& apSongsOut, CArray& apNotesOut, CStringArray& asModifiersOut, bool bShuffled ); RageColor GetColor();