Files
itgmania212121/stepmania/src/ScreenEvaluation.h
T

153 lines
5.0 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"
2004-02-17 01:16:57 +00:00
#include "HighScore.h"
#include "RageSound.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
2004-03-07 04:34:49 +00:00
enum JudgeLine { marvelous, perfect, great, good, boo, miss, ok, max_combo, error, NUM_JUDGE_LINES };
2005-05-09 06:15:59 +00:00
enum StatsLine { jumps, holds, mines, hands, rolls, NUM_STATS_LINES };
2002-06-24 22:04:31 +00:00
class ScreenEvaluation : public ScreenWithMenuElements
2002-06-24 22:04:31 +00:00
{
public:
enum Type { stage, summary, course };
2003-09-27 23:31:42 +00:00
ScreenEvaluation( CString sClassName );
virtual void Init();
2002-06-24 22:04:31 +00:00
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM );
2005-07-14 22:26:09 +00:00
virtual void TweenOursOffScreen();
2002-12-21 10:04:25 +00:00
virtual void MenuLeft( PlayerNumber pn );
virtual void MenuRight( PlayerNumber pn );
virtual void MenuBack( PlayerNumber pn );
virtual void MenuStart( PlayerNumber pn );
2002-06-24 22:04:31 +00:00
2005-08-29 00:46:27 +00:00
//
// Lua
//
virtual void PushSelf( lua_State *L );
StageStats m_StageStats;
2005-08-30 04:30:08 +00:00
int m_iPersonalHighScoreIndex[NUM_PLAYERS];
int m_iMachineHighScoreIndex[NUM_PLAYERS];
PerDifficultyAward m_pdaToShow[NUM_PLAYERS];
PeakComboAward m_pcaToShow[NUM_PLAYERS];
2005-08-29 00:46:27 +00:00
2002-06-24 22:04:31 +00:00
protected:
void CommitScores(
const StageStats &stageStats,
int iPersonalHighScoreIndexOut[NUM_PLAYERS],
int iMachineHighScoreIndexOut[NUM_PLAYERS],
RankingCategory rcOut[NUM_PLAYERS],
PerDifficultyAward pdaToShowOut[NUM_PLAYERS],
PeakComboAward pcaToShowOut[NUM_PLAYERS] );
2004-01-12 23:18:38 +00:00
void EndScreen();
2003-12-18 03:43:25 +00:00
Type m_Type;
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];
2004-01-20 03:32:48 +00:00
AutoActor m_sprGrade[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];
2003-01-30 07:18:33 +00:00
Sprite m_sprPossibleBar[NUM_PLAYERS][NUM_RADAR_CATEGORIES];
Sprite m_sprActualBar[NUM_PLAYERS][NUM_RADAR_CATEGORIES];
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
2002-06-24 22:04:31 +00:00
Sprite m_sprJudgeLabels[NUM_JUDGE_LINES];
BitmapText m_textJudgeNumbers[NUM_JUDGE_LINES][NUM_PLAYERS];
2003-12-16 10:04:37 +00:00
// stats area
AutoActor m_sprStatsLabel[NUM_STATS_LINES];
BitmapText m_textStatsText[NUM_STATS_LINES][NUM_PLAYERS];
// 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;
2004-03-07 04:34:49 +00:00
AutoActor m_PerDifficultyAward[NUM_PLAYERS];
2004-06-22 08:41:25 +00:00
AutoActor m_PeakComboAward[NUM_PLAYERS];
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
2004-02-17 01:16:57 +00:00
HighScore m_HighScore[NUM_PLAYERS];
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.
*/