2002-06-24 22:04:31 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: ScreenEvaluation
|
|
|
|
|
|
|
|
|
|
Desc: Shows the user their score after gameplay has ended.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "Screen.h"
|
|
|
|
|
#include "Sprite.h"
|
|
|
|
|
#include "BitmapText.h"
|
|
|
|
|
#include "GradeDisplay.h"
|
|
|
|
|
#include "MenuElements.h"
|
|
|
|
|
#include "Banner.h"
|
2002-07-23 01:41:40 +00:00
|
|
|
#include "ScoreDisplayNormal.h"
|
2002-07-28 20:28:37 +00:00
|
|
|
#include "StageBox.h"
|
2002-06-24 22:04:31 +00:00
|
|
|
#include "BannerWithFrame.h"
|
2002-10-06 16:56:58 +00:00
|
|
|
#include "DifficultyIcon.h"
|
2002-06-24 22:04:31 +00:00
|
|
|
|
|
|
|
|
|
2003-01-11 08:55:21 +00:00
|
|
|
const int NUM_JUDGE_LINES = 8; // marvelous, perfect, great, good, boo, miss, ok, max_combo
|
2002-06-24 22:04:31 +00:00
|
|
|
const int STAGES_TO_SHOW_IN_SUMMARY = 3; // only show the latest three stages in a summary
|
|
|
|
|
|
2002-08-27 03:59:22 +00:00
|
|
|
|
2002-06-24 22:04:31 +00:00
|
|
|
class ScreenEvaluation : public Screen
|
|
|
|
|
{
|
|
|
|
|
public:
|
2002-08-27 03:59:22 +00:00
|
|
|
ScreenEvaluation( bool bFinalEval = false );
|
2002-06-24 22:04:31 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
|
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
|
|
|
|
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
|
|
|
|
|
|
|
|
|
virtual void TweenOnScreen();
|
|
|
|
|
virtual void TweenOffScreen();
|
2002-12-21 10:04:25 +00:00
|
|
|
virtual void MenuLeft( PlayerNumber pn );
|
|
|
|
|
virtual void MenuRight( PlayerNumber pn );
|
2002-09-04 03:49:08 +00:00
|
|
|
virtual void MenuBack( PlayerNumber pn );
|
|
|
|
|
virtual void MenuStart( PlayerNumber pn );
|
2002-06-24 22:04:31 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
enum ResultMode { RM_ARCADE_STAGE, RM_ARCADE_SUMMARY, RM_ONI };
|
|
|
|
|
ResultMode m_ResultMode;
|
|
|
|
|
|
|
|
|
|
MenuElements m_Menu;
|
|
|
|
|
|
|
|
|
|
BannerWithFrame m_BannerWithFrame[STAGES_TO_SHOW_IN_SUMMARY];
|
2002-08-01 20:30:40 +00:00
|
|
|
BitmapText m_textStage;
|
2002-10-06 16:56:58 +00:00
|
|
|
DifficultyIcon m_DifficultyIcon[NUM_PLAYERS];
|
2002-06-24 22:04:31 +00:00
|
|
|
|
2002-08-22 09:31:32 +00:00
|
|
|
// used in arcade
|
2002-06-24 22:04:31 +00:00
|
|
|
Sprite m_sprGradeFrame[NUM_PLAYERS];
|
|
|
|
|
GradeDisplay m_Grades[NUM_PLAYERS];
|
|
|
|
|
|
2002-08-22 09:31:32 +00:00
|
|
|
// used in Oni/Endless
|
|
|
|
|
Sprite m_sprPercentFrame[NUM_PLAYERS];
|
|
|
|
|
BitmapText m_textOniPercentLarge[NUM_PLAYERS];
|
|
|
|
|
BitmapText m_textOniPercentSmall[NUM_PLAYERS];
|
|
|
|
|
|
|
|
|
|
// used in arcade
|
|
|
|
|
Sprite m_sprBonusFrame[NUM_PLAYERS];
|
|
|
|
|
Sprite m_sprPossibleBar[NUM_PLAYERS][NUM_RADAR_VALUES];
|
|
|
|
|
Sprite m_sprActualBar[NUM_PLAYERS][NUM_RADAR_VALUES];
|
|
|
|
|
|
|
|
|
|
// used in Oni/Endless
|
|
|
|
|
Sprite m_sprCourseFrame[NUM_PLAYERS];
|
|
|
|
|
BitmapText m_textTime[NUM_PLAYERS];
|
|
|
|
|
BitmapText m_textSongsSurvived[NUM_PLAYERS];
|
2002-06-24 22:04:31 +00:00
|
|
|
|
|
|
|
|
Sprite m_sprJudgeLabels[NUM_JUDGE_LINES];
|
|
|
|
|
BitmapText m_textJudgeNumbers[NUM_JUDGE_LINES][NUM_PLAYERS];
|
|
|
|
|
|
|
|
|
|
Sprite m_sprScoreLabel;
|
2002-07-23 01:41:40 +00:00
|
|
|
ScoreDisplayNormal m_ScoreDisplay[NUM_PLAYERS];
|
2002-06-24 22:04:31 +00:00
|
|
|
|
2002-09-03 22:31:06 +00:00
|
|
|
Sprite m_sprNewRecord[NUM_PLAYERS];
|
2002-06-24 22:04:31 +00:00
|
|
|
|
|
|
|
|
bool m_bTryExtraStage;
|
2002-09-03 22:31:06 +00:00
|
|
|
Sprite m_sprTryExtraStage;
|
2002-06-24 22:04:31 +00:00
|
|
|
};
|
|
|
|
|
|
2002-08-27 03:59:22 +00:00
|
|
|
class ScreenFinalEvaluation : public ScreenEvaluation
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ScreenFinalEvaluation() : ScreenEvaluation(true) {};
|
|
|
|
|
};
|
2002-06-24 22:04:31 +00:00
|
|
|
|
|
|
|
|
|