GUIScoreBoard Class Reference

GUIScoreBoard displays the games score and other game related info. More...

#include <Game/GUIScoreBoard.h>

Inherits GUIPanel.

List of all members.

Public Member Functions

 GUIScoreBoard (const GameSettings &settings)
 Constructor.
 ~GUIScoreBoard ()
 Deconstructor.
void Update (float dt)
 Updates the scoreboard.
void IncrementScore (int amount)
 Increases/decrease the score by the given amount.
void SetScore (int score)
 Sets the score.
int GetScore () const
 Gets the score.
void IncrementBallCount ()
 Increases the ball count by one.
void DecrementBallCount ()
 Decreases the ball count by one.
void SetBallCount (uint count)
 Sets the ball count.
int GetBallCount () const
 Gets the ball count.

Protected Member Functions

virtual void Paint ()
 Does the actual rendering of the GUI element.

Detailed Description

GUIScoreBoard displays the games score and other game related info.


Constructor & Destructor Documentation

GUIScoreBoard::GUIScoreBoard ( const GameSettings settings  ) 

Constructor.

Parameters:
[in] settings the game settings.

Member Function Documentation

void GUIScoreBoard::IncrementScore ( int  amount  ) 

Increases/decrease the score by the given amount.

Parameters:
[in] amount the amount to increase/decrease the score.
void GUIScoreBoard::Update ( float  dt  )  [virtual]

Updates the scoreboard.

Parameters:
[in] dt the time in seconds since the last frame.

Reimplemented from GUIPanel.


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3