2003-01-08 23:43:54 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2003-01-26 07:33:03 +00:00
|
|
|
Class: ScreenRanking
|
2003-01-08 23:43:54 +00:00
|
|
|
|
|
|
|
|
Desc: Base class for all attraction screens.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "ScreenAttract.h"
|
2003-01-27 02:00:38 +00:00
|
|
|
#include "GameConstantsAndTypes.h" // for NUM_RANKING_LINES
|
2003-01-26 07:33:03 +00:00
|
|
|
#include "Style.h"
|
2003-07-12 20:35:47 +00:00
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "BitmapText.h"
|
2003-10-20 01:06:26 +00:00
|
|
|
#include "Banner.h"
|
2003-01-08 23:43:54 +00:00
|
|
|
|
2003-01-26 07:33:03 +00:00
|
|
|
class Course;
|
2003-10-14 17:06:30 +00:00
|
|
|
class Song;
|
2003-01-26 07:33:03 +00:00
|
|
|
|
|
|
|
|
class ScreenRanking : public ScreenAttract
|
2003-01-08 23:43:54 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-09-27 22:30:51 +00:00
|
|
|
ScreenRanking( CString sName );
|
2003-01-26 07:33:03 +00:00
|
|
|
|
|
|
|
|
void HandleScreenMessage( const ScreenMessage SM );
|
2003-01-20 05:08:35 +00:00
|
|
|
|
|
|
|
|
protected:
|
2003-01-26 20:49:05 +00:00
|
|
|
struct PageToShow
|
2003-01-26 07:33:03 +00:00
|
|
|
{
|
2003-10-14 17:06:30 +00:00
|
|
|
enum { TYPE_CATEGORY, TYPE_COURSE, TYPE_SONG } type;
|
2003-04-13 02:34:14 +00:00
|
|
|
int colorIndex;
|
2003-08-07 06:16:17 +00:00
|
|
|
StepsType nt; // used in category and course
|
2003-01-26 07:33:03 +00:00
|
|
|
RankingCategory category;
|
|
|
|
|
Course* pCourse;
|
2003-10-14 17:06:30 +00:00
|
|
|
Song* pSong;
|
2003-10-22 23:29:14 +00:00
|
|
|
PageToShow(): pCourse(NULL), pSong(NULL) { }
|
2003-01-26 07:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
2003-01-26 20:49:05 +00:00
|
|
|
void SetPage( PageToShow pts );
|
|
|
|
|
void TweenPageOnScreen();
|
|
|
|
|
void TweenPageOffScreen();
|
2003-01-26 07:33:03 +00:00
|
|
|
|
|
|
|
|
|
2003-07-10 03:37:34 +00:00
|
|
|
Sprite m_sprCategory;
|
2003-10-20 01:06:26 +00:00
|
|
|
Banner m_banner;
|
2003-07-16 02:32:37 +00:00
|
|
|
BitmapText m_textCategory;
|
2003-07-10 03:37:34 +00:00
|
|
|
Sprite m_sprType;
|
2003-01-27 02:00:38 +00:00
|
|
|
Sprite m_sprBullets[NUM_RANKING_LINES];
|
2003-10-19 02:05:34 +00:00
|
|
|
Sprite m_sprDiffHeaders[NUM_DIFFICULTIES];
|
2003-01-27 02:00:38 +00:00
|
|
|
BitmapText m_textNames[NUM_RANKING_LINES];
|
2003-02-12 22:52:28 +00:00
|
|
|
BitmapText m_textScores[NUM_RANKING_LINES]; // for category
|
|
|
|
|
BitmapText m_textPoints[NUM_RANKING_LINES]; // for course
|
|
|
|
|
BitmapText m_textTime[NUM_RANKING_LINES]; // for course
|
2003-10-14 17:06:30 +00:00
|
|
|
BitmapText m_textPercent[NUM_RANKING_LINES][NUM_DIFFICULTIES]; // for song
|
2003-01-26 07:33:03 +00:00
|
|
|
|
2003-01-26 20:49:05 +00:00
|
|
|
vector<PageToShow> m_vPagesToShow;
|
2003-10-19 02:05:34 +00:00
|
|
|
|
|
|
|
|
vector<Difficulty> m_vDiffsToShow;
|
|
|
|
|
|
|
|
|
|
typedef vector<Difficulty>::iterator DiffVectorIter;
|
|
|
|
|
typedef vector<Difficulty>::const_iterator DiffVectorCIter;
|
2003-01-08 23:43:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|