Files
itgmania212121/stepmania/src/Course.h
T

67 lines
1.8 KiB
C++
Raw Normal View History

#ifndef COURSE_H
#define COURSE_H
2002-06-14 22:25:22 +00:00
/*
-----------------------------------------------------------------------------
2002-07-27 19:29:51 +00:00
Class: Course
2002-06-14 22:25:22 +00:00
Desc: A queue of songs and notes.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "GameConstantsAndTypes.h"
2002-07-28 20:28:37 +00:00
struct PlayerOptions;
struct SongOptions;
2002-06-14 22:25:22 +00:00
class Song;
struct Notes;
2002-07-27 19:29:51 +00:00
const int MAX_COURSE_STAGES = 300; // Increased since the user can place all Bemani songs in a single folder
2002-06-14 22:25:22 +00:00
class Course
{
2002-12-17 05:16:33 +00:00
CString m_asDescriptions[MAX_COURSE_STAGES];
CString m_asModifiers[MAX_COURSE_STAGES]; // set player and song options from these
Song* m_apSongs[MAX_COURSE_STAGES];
2002-06-14 22:25:22 +00:00
public:
Course();
2002-06-14 22:25:22 +00:00
CString m_sName;
CString m_sBannerPath;
CString m_sCDTitlePath;
int m_iStages;
2002-12-17 05:16:33 +00:00
2002-07-02 17:34:20 +00:00
bool m_bRepeat; // repeat after last song?
2002-07-29 03:06:55 +00:00
bool m_bRandomize; // play the songs in a random order
2002-07-27 19:29:51 +00:00
int m_iLives; // -1 means use bar life meter
int m_iExtra; // extra stage number...
2002-07-02 17:34:20 +00:00
2002-12-17 05:16:33 +00:00
Notes *GetNotesForStage( int iStage );
Song *GetSong( int iStage );
CString GetDescription( int iStage );
CString GetModifiers( int iStage );
2002-07-28 20:28:37 +00:00
void GetPlayerOptions( PlayerOptions* pPO_out );
void GetSongOptions( SongOptions* pSO_out);
2002-06-14 22:25:22 +00:00
2002-07-23 01:41:40 +00:00
void LoadFromCRSFile( CString sPath, CArray<Song*,Song*> &apSongs );
2002-09-29 05:06:18 +00:00
void CreateEndlessCourseFromGroupAndDifficulty( CString sGroupName, Difficulty dc, CArray<Song*,Song*> &apSongsInGroup );
void AddStage( Song* pSong, CString sDescription, CString sModifiers );
2002-06-14 22:25:22 +00:00
void GetSongAndNotesForCurrentStyle( CArray<Song*,Song*>& apSongsOut, CArray<Notes*,Notes*>& apNotesOut, CStringArray& asModifiersOut, bool bShuffled );
RageColor GetColor();
private:
int SongOrdering[MAX_COURSE_STAGES];
void Shuffle();
2002-06-14 22:25:22 +00:00
};
2002-07-27 19:29:51 +00:00
void SortCoursePointerArrayByDifficulty( CArray<Course*,Course*> &apCourses );
#endif