Files
itgmania212121/stepmania/src/ScreenEvaluation.h
T

150 lines
4.3 KiB
C++
Raw Normal View History

2004-06-08 05:22:33 +00:00
/* ScreenEvaluation - Shows the user their score after gameplay has ended. */
2003-09-27 23:31:42 +00:00
#ifndef SCREEN_EVALUATION_H
#define SCREEN_EVALUATION_H
#include "ScreenWithMenuElements.h"
2002-06-24 22:04:31 +00:00
#include "Sprite.h"
#include "BitmapText.h"
#include "GradeDisplay.h"
#include "Banner.h"
2002-10-06 16:56:58 +00:00
#include "DifficultyIcon.h"
#include "DifficultyMeter.h"
2003-10-05 00:33:05 +00:00
#include "PercentageDisplay.h"
2003-10-31 03:10:31 +00:00
#include "ActorUtil.h"
#include "RageSound.h"
#include "ThemeMetric.h"
2002-06-24 22:04:31 +00:00
const int MAX_SONGS_TO_SHOW = 5; // In summary, we show last 3 stages, plus extra stages if passed
enum JudgeLine
{
JudgeLine_W1,
JudgeLine_W2,
JudgeLine_W3,
JudgeLine_W4,
JudgeLine_W5,
JudgeLine_Miss,
JudgeLine_Held,
JudgeLine_MaxCombo,
JudgeLine_Error,
NUM_JudgeLine
};
enum StatLine
{
StatLine_Jumps,
StatLine_Holds,
StatLine_Mines,
StatLine_Hands,
StatLine_Rolls,
NUM_StatLine
};
2002-06-24 22:04:31 +00:00
class ScreenEvaluation : public ScreenWithMenuElements
2002-06-24 22:04:31 +00:00
{
public:
2003-09-27 23:31:42 +00:00
ScreenEvaluation( CString sClassName );
virtual void Init();
virtual void Input( const InputEventPlus &input );
2002-06-24 22:04:31 +00:00
virtual void HandleScreenMessage( const ScreenMessage SM );
virtual void TweenOffScreen();
virtual void MenuBack( PlayerNumber pn );
virtual void MenuStart( PlayerNumber pn );
2002-06-24 22:04:31 +00:00
protected:
2004-01-12 23:18:38 +00:00
void EndScreen();
2003-12-18 03:43:25 +00:00
bool m_bSummary;
2002-06-24 22:04:31 +00:00
// banner area
2003-03-28 05:47:42 +00:00
Banner m_LargeBanner;
2004-05-30 21:34:42 +00:00
AutoActor m_sprLargeBannerFrame;
2002-10-06 16:56:58 +00:00
DifficultyIcon m_DifficultyIcon[NUM_PLAYERS];
DifficultyMeter m_DifficultyMeter[NUM_PLAYERS];
BitmapText m_textPlayerOptions[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
Banner m_SmallBanner[MAX_SONGS_TO_SHOW];
2004-05-30 21:34:42 +00:00
AutoActor m_sprSmallBannerFrame[MAX_SONGS_TO_SHOW];
2002-06-24 22:04:31 +00:00
// grade area
2004-05-30 21:34:42 +00:00
AutoActor m_sprGradeFrame[NUM_PLAYERS];
2002-06-24 22:04:31 +00:00
GradeDisplay m_Grades[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
// points area
bool m_bNewSongsUnlocked;
2003-10-05 00:33:05 +00:00
PercentageDisplay m_Percent[NUM_PLAYERS];
2004-05-30 21:34:42 +00:00
AutoActor m_sprPercentFrame[NUM_PLAYERS];
2002-06-24 22:04:31 +00:00
// bonus area
2004-05-30 21:34:42 +00:00
AutoActor m_sprBonusFrame[NUM_PLAYERS];
2006-01-07 04:11:29 +00:00
Sprite m_sprPossibleBar[NUM_PLAYERS][NUM_RadarCategory];
Sprite m_sprActualBar[NUM_PLAYERS][NUM_RadarCategory];
2002-06-24 22:04:31 +00:00
2003-03-28 05:47:42 +00:00
// survived area
2004-05-30 21:34:42 +00:00
AutoActor m_sprSurvivedFrame[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
BitmapText m_textSurvivedNumber[NUM_PLAYERS];
// win area
2004-05-30 21:34:42 +00:00
AutoActor m_sprWinFrame[NUM_PLAYERS];
Sprite m_sprWin[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
// judgment area
Sprite m_sprJudgeLabels[NUM_JudgeLine];
BitmapText m_textJudgeNumbers[NUM_JudgeLine][NUM_PLAYERS];
2002-06-24 22:04:31 +00:00
2003-12-16 10:04:37 +00:00
// stats area
AutoActor m_sprStatsLabel[NUM_StatLine];
BitmapText m_textStatsText[NUM_StatLine][NUM_PLAYERS];
2003-12-16 10:04:37 +00:00
// score area
2004-05-30 21:34:42 +00:00
AutoActor m_sprScoreLabel;
BitmapText m_textScore[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
// total score area
2004-05-30 21:34:42 +00:00
AutoActor m_sprTotalScoreLabel;
BitmapText m_textTotalScore[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
// time area
2004-05-30 21:34:42 +00:00
AutoActor m_sprTimeLabel;
BitmapText m_textTime[NUM_PLAYERS];
2003-03-28 05:47:42 +00:00
// extra area
AutoActor m_sprMachineRecord[NUM_PLAYERS];
AutoActor m_sprPersonalRecord[NUM_PLAYERS];
2002-06-24 22:04:31 +00:00
bool m_bTryExtraStage;
2004-05-30 21:34:42 +00:00
AutoActor m_sprTryExtraStage;
bool m_bFailed;
2003-12-11 05:23:40 +00:00
2004-01-11 07:01:06 +00:00
RageSound m_soundStart; // sound played if the player passes or fails
2003-12-11 05:23:40 +00:00
ThemeMetric<bool> SUMMARY;
bool m_bSavedScreenshot[NUM_PLAYERS];
2002-06-24 22:04:31 +00:00
};
2003-09-27 23:31:42 +00:00
#endif
2004-06-08 05:22:33 +00:00
/*
* (c) 2001-2004 Chris Danford
* 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.
*/