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
|
2003-12-28 08:20:48 +00:00
|
|
|
Ben Nordstrom
|
2003-01-08 23:43:54 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#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-12-28 08:20:48 +00:00
|
|
|
#include "ListDisplay.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-12-28 08:20:48 +00:00
|
|
|
~ScreenRanking();
|
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-12-28 08:20:48 +00:00
|
|
|
enum { TYPE_CATEGORY, TYPE_COURSE, TYPE_ALL_STEPS } type;
|
2003-04-13 02:34:14 +00:00
|
|
|
int colorIndex;
|
2003-12-28 08:20:48 +00:00
|
|
|
StepsType nt;
|
2003-01-26 07:33:03 +00:00
|
|
|
RankingCategory category;
|
|
|
|
|
Course* pCourse;
|
2003-12-28 08:20:48 +00:00
|
|
|
PageToShow(): pCourse(NULL) { }
|
2003-01-26 07:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
2003-12-28 08:20:48 +00:00
|
|
|
float SetPage( PageToShow pts );
|
2003-01-26 20:49:05 +00:00
|
|
|
void TweenPageOnScreen();
|
|
|
|
|
void TweenPageOffScreen();
|
2003-01-26 07:33:03 +00:00
|
|
|
|
|
|
|
|
|
2003-12-28 08:20:48 +00:00
|
|
|
Banner m_Banner; // for course
|
|
|
|
|
Sprite m_sprBannerFrame; // for course
|
2004-01-13 01:25:48 +00:00
|
|
|
BitmapText m_textCourseTitle; // for course
|
2003-12-28 08:20:48 +00:00
|
|
|
BitmapText m_textCategory; // for category
|
|
|
|
|
BitmapText m_textStepsType; // for category, course, all_steps
|
|
|
|
|
|
|
|
|
|
Sprite m_sprBullets[NUM_RANKING_LINES]; // for category and course
|
|
|
|
|
BitmapText m_textNames[NUM_RANKING_LINES]; // for category and course
|
|
|
|
|
BitmapText m_textScores[NUM_RANKING_LINES]; // for category and course
|
2003-02-12 22:52:28 +00:00
|
|
|
BitmapText m_textPoints[NUM_RANKING_LINES]; // for course
|
|
|
|
|
BitmapText m_textTime[NUM_RANKING_LINES]; // for course
|
2003-12-28 08:20:48 +00:00
|
|
|
Sprite m_sprDifficulty[NUM_DIFFICULTIES]; // for all_steps
|
|
|
|
|
struct StepsScoreRowItem : public ActorFrame // for all_steps
|
|
|
|
|
{
|
|
|
|
|
Sprite m_sprSongFrame;
|
|
|
|
|
BitmapText m_textSongTitle;
|
|
|
|
|
BitmapText m_textStepsScore[NUM_DIFFICULTIES];
|
|
|
|
|
};
|
|
|
|
|
vector<StepsScoreRowItem*> m_vpStepsScoreRowItem; // for all_steps
|
|
|
|
|
ListDisplay m_ListScoreRowItems;
|
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;
|
2003-01-08 23:43:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|