Files
itgmania212121/stepmania/src/ScreenRanking.h
T

121 lines
3.7 KiB
C++
Raw Normal View History

2004-06-08 05:22:33 +00:00
#ifndef SCREEN_RANKING_H
#define SCREEN_RANKING_H
#include "ScreenAttract.h"
2003-01-27 02:00:38 +00:00
#include "GameConstantsAndTypes.h" // for NUM_RANKING_LINES
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"
2004-05-02 03:01:27 +00:00
#include "ActorUtil.h"
2003-01-26 07:33:03 +00:00
class Course;
class Song;
2004-06-03 20:47:37 +00:00
class Trail;
2003-01-26 07:33:03 +00:00
2004-05-02 03:01:27 +00:00
enum PageType
{
PAGE_TYPE_CATEGORY,
2004-06-03 20:47:37 +00:00
PAGE_TYPE_TRAIL,
2004-05-02 03:01:27 +00:00
PAGE_TYPE_ALL_STEPS,
PAGE_TYPE_ALL_COURSES,
NUM_PAGE_TYPES
};
#define FOREACH_PageType( pt ) FOREACH_ENUM( PageType, NUM_PAGE_TYPES, pt )
const CString& PageTypeToString( PageType pt );
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-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
{
2004-05-02 03:01:27 +00:00
PageToShow()
{
pCourse = NULL;
2004-06-03 20:47:37 +00:00
pTrail = NULL;
2004-05-02 03:01:27 +00:00
}
PageType type;
int colorIndex;
2003-12-28 08:20:48 +00:00
StepsType nt;
2003-01-26 07:33:03 +00:00
RankingCategory category;
Course* pCourse;
2004-06-03 20:47:37 +00:00
Trail* pTrail;
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
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
2004-05-02 03:01:27 +00:00
AutoActor m_sprPageType;
2003-12-28 08:20:48 +00:00
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
2004-06-11 08:52:41 +00:00
AutoActor m_sprDifficulty[NUM_DIFFICULTIES]; // for all_steps
2003-12-28 08:20:48 +00:00
struct StepsScoreRowItem : public ActorFrame // for all_steps
{
2004-01-29 09:24:56 +00:00
Song *m_pSong;
2003-12-28 08:20:48 +00:00
Sprite m_sprSongFrame;
BitmapText m_textSongTitle;
BitmapText m_textStepsScore[NUM_DIFFICULTIES];
};
vector<StepsScoreRowItem*> m_vpStepsScoreRowItem; // for all_steps
ListDisplay m_ListScoreRowItems;
2004-06-11 08:52:41 +00:00
AutoActor m_sprCourseDifficulty[NUM_DIFFICULTIES]; // for all_courses
2004-01-29 09:24:56 +00:00
struct CourseScoreRowItem : public ActorFrame // for all_steps
{
Course *m_pCourse;
Sprite m_sprSongFrame;
BitmapText m_textSongTitle;
BitmapText m_textStepsScore[NUM_DIFFICULTIES];
};
vector<CourseScoreRowItem*> m_vpCourseScoreRowItem; // for all_courses
2004-01-29 01:46:08 +00:00
ListDisplay m_ListCourseRowItems;
2003-01-26 07:33:03 +00:00
2003-01-26 20:49:05 +00:00
vector<PageToShow> m_vPagesToShow;
vector<Difficulty> m_vDiffsToShow;
};
2004-06-08 05:22:33 +00:00
#endif
2004-06-08 05:22:33 +00:00
/*
* (c) 2001-2004 Chris Danford, Ben Nordstrom
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/