#include <CDrawGame.h>
Public Member Functions | |
CDrawGame () | |
Constructor. Initialize some members. | |
virtual | ~CDrawGame () |
Destructor. Does nothing. | |
void | SetScores (CScores *pScores) |
Set link to the scores 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 which game mode should be set. | |
void | Display (void) |
Display on the screen. | |
Private Attributes | |
CScores * | m_pScores |
Link to the scores object to use. | |
float | m_FlagTimer |
Timer for flag animation. | |
float | m_BigFumeTimer |
Timer for the big fume animation. | |
float | m_SmallFumeTimer |
Timer for the small fume animation. | |
int | m_FlagSprite |
Flag sprite to draw. | |
int | m_BigFumeSprite |
Big fume sprite to draw. | |
int | m_SmallFumeSprite |
Small fume sprite to draw. | |
float | m_ModeTime |
Time 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). | |
bool | m_PlayedSound |
Did we start playing the draw game sound? |
CDrawGame::CDrawGame | ( | void | ) |
Constructor. Initialize some members.
CDrawGame::~CDrawGame | ( | void | ) | [virtual] |
Destructor. Does nothing.
void CDrawGame::SetScores | ( | CScores * | pScores | ) | [inline] |
Set link to the scores object to use.
void CDrawGame::Create | ( | void | ) | [virtual] |
void CDrawGame::Destroy | ( | void | ) | [virtual] |
void CDrawGame::OpenInput | ( | void | ) | [virtual] |
Get access to the input this object needs.
Implements CModeScreen.
void CDrawGame::CloseInput | ( | void | ) | [virtual] |
Release access to the input this object needs.
Implements CModeScreen.
EGameMode CDrawGame::Update | ( | void | ) | [virtual] |
Update the object and return which game mode should be set.
Implements CModeScreen.
void CDrawGame::Display | ( | void | ) | [virtual] |
CScores* CDrawGame::m_pScores [private] |
Link to the scores object to use.
float CDrawGame::m_FlagTimer [private] |
Timer for flag animation.
float CDrawGame::m_BigFumeTimer [private] |
Timer for the big fume animation.
float CDrawGame::m_SmallFumeTimer [private] |
Timer for the small fume animation.
int CDrawGame::m_FlagSprite [private] |
Flag sprite to draw.
int CDrawGame::m_BigFumeSprite [private] |
Big fume sprite to draw.
int CDrawGame::m_SmallFumeSprite [private] |
Small fume sprite to draw.
float CDrawGame::m_ModeTime [private] |
Time elapsed since the mode has started.
bool CDrawGame::m_HaveToExit [private] |
Do we have to exit this mode?
float CDrawGame::m_ExitModeTime [private] |
Mode time when we realized we have to exit (used for blackscreen).
bool CDrawGame::m_PlayedSound [private] |
Did we start playing the draw game sound?