Files
itgmania212121/stepmania/src/ScreenSelectMode.h
T

71 lines
1.8 KiB
C++
Raw Normal View History

2002-09-29 18:09:38 +00:00
/********************************
ScreenSelectMode.h
Desc: The "Style Select Screen" for Ez2dancer
Copyright (c):
Andrew Livy
*********************************/
2003-12-04 04:28:19 +00:00
#ifndef __SCREEN_SELECT_MODE_H
#define __SCREEN_SELECT_MODE_H
2002-09-29 18:09:38 +00:00
/* Includes */
2003-12-04 04:28:19 +00:00
#include "ScreenSelect.h"
2002-09-29 18:09:38 +00:00
#include "Background.h"
#include "Screen.h"
#include "Sprite.h"
#include "Quad.h"
#include "MenuElements.h"
#include "ScrollingList.h"
#include "GameConstantsAndTypes.h"
#include "ModeChoice.h"
2003-04-22 14:32:48 +00:00
#include "BitmapText.h"
#include "RandomSample.h"
#include "BGAnimationLayer.h"
2003-12-04 04:28:19 +00:00
#include "Character.h"
2002-09-29 18:09:38 +00:00
/* Class Definition */
#define MAX_ELEMS 30
class ScreenSelectMode : public ScreenSelect
2002-09-29 18:09:38 +00:00
{
public:
2003-09-27 22:30:51 +00:00
ScreenSelectMode( CString sName ); // Constructor
2002-09-29 18:09:38 +00:00
virtual ~ScreenSelectMode(); // Destructor
virtual void MenuLeft( PlayerNumber pn );
virtual void MenuRight( PlayerNumber pn );
2003-12-04 04:28:19 +00:00
virtual void MenuUp(PlayerNumber pn );
virtual void MenuDown(PlayerNumber pn);
virtual void MenuStart( PlayerNumber pn );
virtual void Update( float fDelta );
2003-12-04 04:28:19 +00:00
virtual void DrawPrimitives();
2003-05-05 11:50:18 +00:00
virtual void HandleScreenMessage( const ScreenMessage SM );
2002-09-29 18:09:38 +00:00
protected:
virtual int GetSelectionIndex( PlayerNumber pn );
virtual void UpdateSelectableChoices();
2003-12-04 04:28:19 +00:00
void SetCharacters();
void ChangeBGA();
int m_iNumChoices;
int m_iSelectableChoices[MAX_ELEMS];
RageSound m_soundModeChange;
RageSound m_soundConfirm;
RageSound m_soundStart;
CStringArray arrayLocations;
2002-09-29 18:09:38 +00:00
ScrollingList m_ScrollingList;
Sprite m_ChoiceListFrame;
Sprite m_ChoiceListHighlight;
Sprite m_sprJoinMessage[NUM_PLAYERS];
Sprite m_sprJoinFrame[NUM_PLAYERS];
2003-12-04 04:28:19 +00:00
Sprite m_CurChar[NUM_PLAYERS];
int m_iCurrentChar[NUM_PLAYERS];
Sprite m_Guide;
vector<BGAnimation*> m_Backgrounds;
bool m_bSelected;
2003-12-04 04:28:19 +00:00
bool m_b2DAvailable;
bool m_bCharsAvailable;
// private:
// vector<Character*> m_Characters;
2002-09-29 18:09:38 +00:00
};
2003-12-04 04:28:19 +00:00
#endif