Files
itgmania212121/stepmania/src/ScreenSelectDifficulty.h
T

70 lines
1.8 KiB
C++
Raw Normal View History

2002-05-20 08:59:37 +00:00
/*
-----------------------------------------------------------------------------
File: ScreenSelectDifficulty.h
Desc: Select the game mode (single, versus, double).
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-06-14 22:25:22 +00:00
Chris Danford
2002-05-20 08:59:37 +00:00
-----------------------------------------------------------------------------
*/
#include "Screen.h"
#include "Sprite.h"
#include "RandomSample.h"
#include "Screen.h"
#include "Quad.h"
#include "MenuElements.h"
2002-07-27 19:29:51 +00:00
const int NUM_DIFFICULTY_ITEMS = NUM_DIFFICULTY_CLASSES + 2; // easy, medium, hard, Oni, Endless
2002-06-14 22:25:22 +00:00
const int NUM_PAGES = 2; // easy-medium-hard, Oni
2002-05-20 08:59:37 +00:00
class ScreenSelectDifficulty : public Screen
{
public:
ScreenSelectDifficulty();
virtual ~ScreenSelectDifficulty();
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 );
2002-05-27 18:36:01 +00:00
void MenuLeft( const PlayerNumber p );
void MenuRight( const PlayerNumber p );
void MenuStart( const PlayerNumber p );
void MenuBack( const PlayerNumber p );
2002-05-20 08:59:37 +00:00
void TweenOffScreen();
void TweenOnScreen();
private:
2002-06-14 22:25:22 +00:00
void ChangeTo( const PlayerNumber pn, int iSelectionWas, int iSelectionIs );
2002-05-20 08:59:37 +00:00
2002-07-27 19:29:51 +00:00
bool IsItemOnPage2( int iItemIndex );
bool SelectedSomethingOnPage2(); // checks selection of players
2002-05-20 08:59:37 +00:00
MenuElements m_Menu;
2002-06-14 22:25:22 +00:00
ActorFrame m_framePages; // 2 pages
Sprite m_sprHeader[NUM_DIFFICULTY_ITEMS];
Sprite m_sprPicture[NUM_DIFFICULTY_ITEMS];
Sprite m_sprExplanation[NUM_PAGES];
Sprite m_sprMoreArrows[NUM_PAGES];
2002-05-20 08:59:37 +00:00
Sprite m_sprArrow[NUM_PLAYERS];
Sprite m_sprArrowShadow[NUM_PLAYERS];
Sprite m_sprOK[NUM_PLAYERS];
RandomSample m_soundChange;
RandomSample m_soundSelect;
2002-06-14 22:25:22 +00:00
bool m_bPlayedChallengeSound;
2002-05-20 08:59:37 +00:00
int m_iSelection[NUM_PLAYERS];
bool m_bChosen[NUM_PLAYERS];
};