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-01-08 23:43:54 +00:00
|
|
|
|
|
|
|
|
|
2003-01-26 07:33:03 +00:00
|
|
|
class Course;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ScreenRanking : public ScreenAttract
|
2003-01-08 23:43:54 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-01-26 07:33:03 +00:00
|
|
|
ScreenRanking();
|
|
|
|
|
|
|
|
|
|
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
|
|
|
{
|
|
|
|
|
enum { TYPE_CATEGORY, TYPE_COURSE } type;
|
2003-04-13 02:34:14 +00:00
|
|
|
int colorIndex;
|
2003-01-26 07:33:03 +00:00
|
|
|
NotesType nt; // used in category and course
|
|
|
|
|
RankingCategory category;
|
|
|
|
|
Course* pCourse;
|
|
|
|
|
};
|
|
|
|
|
|
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;
|
|
|
|
|
Sprite m_sprType;
|
2003-01-27 02:00:38 +00:00
|
|
|
Sprite m_sprBullets[NUM_RANKING_LINES];
|
|
|
|
|
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-01-26 07:33:03 +00:00
|
|
|
|
2003-01-26 20:49:05 +00:00
|
|
|
vector<PageToShow> m_vPagesToShow;
|
2003-01-08 23:43:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|