#include <CWinner.h>
Public Member Functions | |
CWinner () | |
Constructor. Initialize some members. | |
virtual | ~CWinner () |
Destructor. Does nothing. | |
void | SetScores (CScores *pScores) |
Set link to the scores object to use. | |
void | SetMatch (CMatch *pMatch) |
Set link to the match 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 on the screen. | |
Private Attributes | |
CScores * | m_pScores |
Link to the scores object to use. | |
CMatch * | m_pMatch |
Link to the match object to use. | |
float | m_LightsTimer |
Lights animation timer. | |
float | m_HappyBomberTimer |
Happy bomber animation timer. | |
float | m_SadBomberTimer |
Sad bomber animation timer. | |
int | m_LightSpriteOffset |
Sprite offset to use to switch light colors. | |
int | m_HappyBomberSpriteOffset |
Sprite offset to use to have a happy bomber. | |
int | m_SadBomberSpriteOffset |
Sprite offset to use to have a sad bomber. | |
bool | m_PlayedSound |
Did we start playing the victory sound? | |
CMosaic * | m_pMosaic |
float | m_ModeTime |
Time (in seconds) that elapsed since the mode has started. | |
float | m_ExitModeTime |
Mode time when we have to start the last black screen. | |
float | m_CoinTime |
Time that elapsed for the current coin sprite. | |
int | m_CoinSpriteOffset |
Sprite offset of the coin. | |
int | m_ExitGameMode |
Game mode to ask for when exiting. | |
bool | m_HaveToExit |
Do we have to exit this mode? |
CWinner::CWinner | ( | void | ) |
Constructor. Initialize some members.
CWinner::~CWinner | ( | void | ) | [virtual] |
Destructor. Does nothing.
void CWinner::SetScores | ( | CScores * | pScores | ) | [inline] |
Set link to the scores object to use.
void CWinner::SetMatch | ( | CMatch * | pMatch | ) | [inline] |
Set link to the match object to use.
void CWinner::Create | ( | void | ) | [virtual] |
void CWinner::Destroy | ( | void | ) | [virtual] |
void CWinner::OpenInput | ( | void | ) | [virtual] |
Get access to the input this object needs.
Implements CModeScreen.
void CWinner::CloseInput | ( | void | ) | [virtual] |
Release access to the input this object needs.
Implements CModeScreen.
EGameMode CWinner::Update | ( | void | ) | [virtual] |
Update the object and return what game mode should be set.
Implements CModeScreen.
void CWinner::Display | ( | void | ) | [virtual] |
CScores* CWinner::m_pScores [private] |
Link to the scores object to use.
CMatch* CWinner::m_pMatch [private] |
Link to the match object to use.
float CWinner::m_LightsTimer [private] |
Lights animation timer.
float CWinner::m_HappyBomberTimer [private] |
Happy bomber animation timer.
float CWinner::m_SadBomberTimer [private] |
Sad bomber animation timer.
int CWinner::m_LightSpriteOffset [private] |
Sprite offset to use to switch light colors.
int CWinner::m_HappyBomberSpriteOffset [private] |
Sprite offset to use to have a happy bomber.
int CWinner::m_SadBomberSpriteOffset [private] |
Sprite offset to use to have a sad bomber.
bool CWinner::m_PlayedSound [private] |
Did we start playing the victory sound?
CMosaic* CWinner::m_pMosaic [private] |
float CWinner::m_ModeTime [private] |
Time (in seconds) that elapsed since the mode has started.
float CWinner::m_ExitModeTime [private] |
Mode time when we have to start the last black screen.
float CWinner::m_CoinTime [private] |
Time that elapsed for the current coin sprite.
int CWinner::m_CoinSpriteOffset [private] |
Sprite offset of the coin.
int CWinner::m_ExitGameMode [private] |
Game mode to ask for when exiting.
bool CWinner::m_HaveToExit [private] |
Do we have to exit this mode?