#include <CControls.h>
Public Member Functions | |
CControls () | |
Constructor. Initialize some members. | |
virtual | ~CControls () |
Destructor. Does nothing. | |
void | SetDisplay (CDisplay *pDisplay) |
Set link to the display object to use. | |
void | Create (void) |
Initialize the object. | |
void | Destroy (void) |
Uninitialize the object. | |
void | OpenInput (void) |
Get access to the input this object needs. | |
void | CloseInput (void) |
Release access to the input this object needs. | |
EGameMode | Update (void) |
Update the object and return what game mode should be set. | |
void | Display (void) |
Display the game screen. | |
Private Attributes | |
float | m_ModeTime |
Time (in seconds) that elapsed since the mode has started. | |
bool | m_HaveToExit |
Do we have to exit this mode? | |
float | m_ExitModeTime |
Mode time when we realized we have to exit (used for blackscreen). | |
CFont | m_Font |
Font object used to draw strings. | |
int | m_Cursor |
Number of the menu item the cursor hand is pointing to. | |
int | m_PlayerInput |
Number of the currently selected player input (keyboard X, joystick X...). | |
bool | m_WaitingForInput |
Are we waiting for the user to activate the control he wants to reconfigure? | |
float | m_WaitingForInputAfter |
Time left in seconds to wait before starting to wait for the user to activate the control he wants to reconfigure. | |
bool | m_SongStarted |
Did we start playing the song after the black screen? | |
CMosaic * | m_pMosaic |
CControls::CControls | ( | void | ) |
Constructor. Initialize some members.
CControls::~CControls | ( | void | ) | [virtual] |
Destructor. Does nothing.
void CControls::SetDisplay | ( | CDisplay * | pDisplay | ) | [inline, virtual] |
Set link to the display object to use.
Reimplemented from CModeScreen.
void CControls::Create | ( | void | ) | [virtual] |
void CControls::Destroy | ( | void | ) | [virtual] |
void CControls::OpenInput | ( | void | ) | [virtual] |
Get access to the input this object needs.
Implements CModeScreen.
void CControls::CloseInput | ( | void | ) | [virtual] |
Release access to the input this object needs.
Implements CModeScreen.
EGameMode CControls::Update | ( | void | ) | [virtual] |
Update the object and return what game mode should be set.
Implements CModeScreen.
void CControls::Display | ( | void | ) | [virtual] |
float CControls::m_ModeTime [private] |
Time (in seconds) that elapsed since the mode has started.
bool CControls::m_HaveToExit [private] |
Do we have to exit this mode?
float CControls::m_ExitModeTime [private] |
Mode time when we realized we have to exit (used for blackscreen).
CFont CControls::m_Font [private] |
Font object used to draw strings.
int CControls::m_Cursor [private] |
Number of the menu item the cursor hand is pointing to.
int CControls::m_PlayerInput [private] |
Number of the currently selected player input (keyboard X, joystick X...).
bool CControls::m_WaitingForInput [private] |
Are we waiting for the user to activate the control he wants to reconfigure?
float CControls::m_WaitingForInputAfter [private] |
Time left in seconds to wait before starting to wait for the user to activate the control he wants to reconfigure.
bool CControls::m_SongStarted [private] |
Did we start playing the song after the black screen?
CMosaic* CControls::m_pMosaic [private] |