Files
itgmania212121/stepmania/src/ScreenEz2SelectPlayer.h
T
Glenn Maynard 40d96cc613 Move the last global to the class.
Make m_iSelectedStyle a bitfield, which simplifies some things.

Don't select player 1 if player 2 selects at the last second.
2002-08-26 01:20:03 +00:00

59 lines
1.4 KiB
C++

/********************************
ScreenEz2SelectPlayer.h
Desc: The "Player Select Screen" for Ez2dancer
Copyright (c):
Andrew Livy
*********************************/
/* Includes */
#include "Screen.h"
#include "Sprite.h"
#include "BitmapText.h"
#include "TransitionFade.h"
#include "Quad.h"
#include "RandomSample.h"
#include "Quad.h"
#include "MenuElements.h"
/* Class Definition */
const int NUM_EZ2_GRAPHICS = 4;
class ScreenEz2SelectPlayer : public Screen
{
public:
ScreenEz2SelectPlayer(); // Constructor
virtual ~ScreenEz2SelectPlayer(); // Destructor
/* Public Function Prototypes */
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 );
void MenuDown( const PlayerNumber p );
void MenuStart( const PlayerNumber p );
void MenuBack( const PlayerNumber p );
void TweenOffScreen();
private:
/* Private Function Prototypes */
void Update( float fDeltaTime );
/* Variable Declarations */
MenuElements m_Menu;
Sprite m_sprOpt[NUM_EZ2_GRAPHICS];
/* Bitflags for m_iSelectedStyle. */
enum { EZ2_PLAYER_1 = 0x01,
EZ2_PLAYER_2 = 0x02 };
int m_iSelectedStyle;
RandomSample m_soundChange;
RandomSample m_soundSelect;
RandomSample m_soundInvalid;
// used for the bouncing of the '1p' and '2p' images
float ez2_bounce;
};