add accessors
This commit is contained in:
@@ -216,17 +216,17 @@ Notes* Course::GetNotesForStage( int iStage )
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Song *Course::GetSong( int iStage )
|
Song *Course::GetSong( int iStage ) const
|
||||||
{
|
{
|
||||||
return m_apSongs[iStage];
|
return m_apSongs[iStage];
|
||||||
}
|
}
|
||||||
|
|
||||||
CString Course::GetDescription( int iStage )
|
CString Course::GetDescription( int iStage ) const
|
||||||
{
|
{
|
||||||
return m_asDescriptions[iStage];
|
return m_asDescriptions[iStage];
|
||||||
}
|
}
|
||||||
|
|
||||||
CString Course::GetModifiers( int iStage )
|
CString Course::GetModifiers( int iStage ) const
|
||||||
{
|
{
|
||||||
return m_asModifiers[iStage];
|
return m_asModifiers[iStage];
|
||||||
}
|
}
|
||||||
@@ -292,6 +292,11 @@ void Course::GetSongOptions( SongOptions* pSO_out )
|
|||||||
pSO_out->m_iBatteryLives = m_iLives;
|
pSO_out->m_iBatteryLives = m_iLives;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Course::GetNumStages() const
|
||||||
|
{
|
||||||
|
return m_iStages;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Sorting stuff
|
// Sorting stuff
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -41,11 +41,12 @@ public:
|
|||||||
int m_iExtra; // extra stage number...
|
int m_iExtra; // extra stage number...
|
||||||
|
|
||||||
Notes *GetNotesForStage( int iStage );
|
Notes *GetNotesForStage( int iStage );
|
||||||
Song *GetSong( int iStage );
|
Song *GetSong( int iStage ) const;
|
||||||
CString GetDescription( int iStage );
|
CString GetDescription( int iStage ) const;
|
||||||
CString GetModifiers( int iStage );
|
CString GetModifiers( int iStage ) const;
|
||||||
void GetPlayerOptions( PlayerOptions* pPO_out );
|
void GetPlayerOptions( PlayerOptions* pPO_out );
|
||||||
void GetSongOptions( SongOptions* pSO_out);
|
void GetSongOptions( SongOptions* pSO_out);
|
||||||
|
int GetNumStages() const;
|
||||||
|
|
||||||
void LoadFromCRSFile( CString sPath, CArray<Song*,Song*> &apSongs );
|
void LoadFromCRSFile( CString sPath, CArray<Song*,Song*> &apSongs );
|
||||||
void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray<Song*,Song*> &apSongsInGroup );
|
void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray<Song*,Song*> &apSongsInGroup );
|
||||||
|
|||||||
Reference in New Issue
Block a user