Files
itgmania212121/stepmania/src/Course.h
T

50 lines
1.1 KiB
C++
Raw Normal View History

2002-06-14 22:25:22 +00:00
#pragma once
/*
-----------------------------------------------------------------------------
Course: Course
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"
class Song;
struct Notes;
const int MAX_COURSE_STAGES = 100;
class Course
{
public:
Course()
{
m_iStages = 0;
2002-07-02 17:34:20 +00:00
m_bRepeat = false;
2002-06-14 22:25:22 +00:00
for( int i=0; i<MAX_COURSE_STAGES; i++ )
m_apSongs[i] = NULL;
}
CString m_sName;
CString m_sBannerPath;
CString m_sCDTitlePath;
int m_iStages;
Song* m_apSongs[MAX_COURSE_STAGES];
2002-07-04 21:05:18 +00:00
DifficultyClass m_aDifficultyClasses[MAX_COURSE_STAGES];
2002-07-02 17:34:20 +00:00
bool m_bRepeat; // repeat after last song?
2002-07-04 21:05:18 +00:00
PlayerOptions m_PlayerOptions;
2002-07-02 17:34:20 +00:00
void LoadFromCRSFile( CString sPath, CArray<Song*,Song*> &apSongs );
2002-06-14 22:25:22 +00:00
2002-07-04 21:05:18 +00:00
void AddStage( Song* pSong, DifficultyClass dc )
2002-06-14 22:25:22 +00:00
{
ASSERT( m_iStages <= MAX_COURSE_STAGES );
m_apSongs[m_iStages] = pSong;
2002-07-04 21:05:18 +00:00
m_aDifficultyClasses[m_iStages] = dc;
2002-06-14 22:25:22 +00:00
m_iStages++;
}
};