Files
itgmania212121/stepmania/src/ScreenRanking.h
T

68 lines
1.7 KiB
C++
Raw Normal View History

/*
-----------------------------------------------------------------------------
2003-01-26 07:33:03 +00:00
Class: ScreenRanking
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-26 07:33:03 +00:00
class Course;
class Song;
2003-01-26 07:33:03 +00:00
class ScreenRanking : public ScreenAttract
{
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
{
enum { TYPE_CATEGORY, TYPE_COURSE, TYPE_SONG } type;
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;
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;
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];
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
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;
vector<Difficulty> m_vDiffsToShow;
typedef vector<Difficulty>::iterator DiffVectorIter;
typedef vector<Difficulty>::const_iterator DiffVectorCIter;
};