#include <CVictory.h>
Public Member Functions | |
CVictory () | |
Constructor. Initialize some members. | |
virtual | ~CVictory () |
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 what game mode should be set. | |
void | Display (void) |
Display the game screen. | |
void | StopSong (void) |
Private Member Functions | |
void | ResetConfetti (SConfetti *pConfetti) |
Make a new confetti, make it start at the top of the game view (out of the game view). | |
Private Attributes | |
CScores * | m_pScores |
Link to the scores object to use. | |
float | m_ModeTime |
Time (in seconds) that elapsed since the mode has started. | |
float | m_CrowdTimer |
Crowd animation timer. | |
float | m_WinnerBomberTimer |
Timer of the animation of the victorious bomber. | |
float | m_LoserBomberTimer |
Timer of the animation of the bombers that lost. | |
SConfetti | m_Confettis [NUM_CONFETTIS] |
The confettis to manage on the screen. | |
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? | |
bool | m_CrowdFlag |
This flag allows to make the crowd switch between two states. Some bombers in the crowd get up and other bombers sit down. | |
int | m_WinnerBomberSprite |
This is the sprite offset to use to get the current victorious bomber sprite. This sprite offset must be added to the sprite offset determining the color of the bomber. | |
int | m_LoserBomberSprite |
This is the sprite offset to use to get the current loser sprite. This sprite offset must be added to the sprite offset determining the color of the bomber. | |
float | m_MexicanWaveTimer |
Timer of the crowd's Mexican wave animation. | |
int | m_MexicanWavePosition |
The current position of the Mexican wave (which row is standing up). | |
ECrowdWave | m_CrowdWaveMode |
Which wave the crowd is doing. |
CVictory::CVictory | ( | void | ) |
Constructor. Initialize some members.
CVictory::~CVictory | ( | void | ) | [virtual] |
Destructor. Does nothing.
void CVictory::ResetConfetti | ( | SConfetti * | pConfetti | ) | [private] |
Make a new confetti, make it start at the top of the game view (out of the game view).
void CVictory::SetScores | ( | CScores * | pScores | ) | [inline] |
Set link to the scores object to use.
void CVictory::Create | ( | void | ) | [virtual] |
void CVictory::Destroy | ( | void | ) | [virtual] |
void CVictory::OpenInput | ( | void | ) | [virtual] |
Get access to the input this object needs.
Implements CModeScreen.
void CVictory::CloseInput | ( | void | ) | [virtual] |
Release access to the input this object needs.
Implements CModeScreen.
EGameMode CVictory::Update | ( | void | ) | [virtual] |
Update the object and return what game mode should be set.
Implements CModeScreen.
void CVictory::Display | ( | void | ) | [virtual] |
void CVictory::StopSong | ( | void | ) |
CScores* CVictory::m_pScores [private] |
Link to the scores object to use.
float CVictory::m_ModeTime [private] |
Time (in seconds) that elapsed since the mode has started.
float CVictory::m_CrowdTimer [private] |
Crowd animation timer.
float CVictory::m_WinnerBomberTimer [private] |
Timer of the animation of the victorious bomber.
float CVictory::m_LoserBomberTimer [private] |
Timer of the animation of the bombers that lost.
SConfetti CVictory::m_Confettis[NUM_CONFETTIS] [private] |
The confettis to manage on the screen.
bool CVictory::m_HaveToExit [private] |
Do we have to exit this mode?
float CVictory::m_ExitModeTime [private] |
Mode time when we realized we have to exit (used for blackscreen).
bool CVictory::m_PlayedSound [private] |
Did we start playing the draw game sound?
bool CVictory::m_CrowdFlag [private] |
This flag allows to make the crowd switch between two states. Some bombers in the crowd get up and other bombers sit down.
int CVictory::m_WinnerBomberSprite [private] |
This is the sprite offset to use to get the current victorious bomber sprite. This sprite offset must be added to the sprite offset determining the color of the bomber.
int CVictory::m_LoserBomberSprite [private] |
This is the sprite offset to use to get the current loser sprite. This sprite offset must be added to the sprite offset determining the color of the bomber.
float CVictory::m_MexicanWaveTimer [private] |
Timer of the crowd's Mexican wave animation.
int CVictory::m_MexicanWavePosition [private] |
The current position of the Mexican wave (which row is standing up).
ECrowdWave CVictory::m_CrowdWaveMode [private] |
Which wave the crowd is doing.