CVictory Class Reference

The victory screen that appears after a player has won a match (a match is composed of battles). More...

#include <CVictory.h>

Inheritance diagram for CVictory:

Inheritance graph
[legend]
Collaboration diagram for CVictory:

Collaboration graph
[legend]

List of all members.

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

CScoresm_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.


Detailed Description

The victory screen that appears after a player has won a match (a match is composed of battles).

Constructor & Destructor Documentation

CVictory::CVictory ( void   ) 

Constructor. Initialize some members.

CVictory::~CVictory ( void   )  [virtual]

Destructor. Does nothing.


Member Function Documentation

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).

Here is the caller graph for this function:

void CVictory::SetScores ( CScores pScores  )  [inline]

Set link to the scores object to use.

Here is the caller graph for this function:

void CVictory::Create ( void   )  [virtual]

Initialize the object.

Reimplemented from CModeScreen.

Here is the call graph for this function:

void CVictory::Destroy ( void   )  [virtual]

Uninitialize the object.

Reimplemented from CModeScreen.

Here is the call graph for this function:

void CVictory::OpenInput ( void   )  [virtual]

Get access to the input this object needs.

Implements CModeScreen.

Here is the call graph for this function:

void CVictory::CloseInput ( void   )  [virtual]

Release access to the input this object needs.

Implements CModeScreen.

Here is the call graph for this function:

EGameMode CVictory::Update ( void   )  [virtual]

Update the object and return what game mode should be set.

Implements CModeScreen.

Here is the call graph for this function:

void CVictory::Display ( void   )  [virtual]

Display the game screen.

Implements CModeScreen.

Here is the call graph for this function:

void CVictory::StopSong ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.

Timer of the animation of the victorious bomber.

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.

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.

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.

Timer of the crowd's Mexican wave animation.

The current position of the Mexican wave (which row is standing up).

Which wave the crowd is doing.


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 12:26:48 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo