GUIScoreBoard displays the games score and other game related info. More...
#include <Game/GUIScoreBoard.h>
Inherits GUIPanel.
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. |
GUIScoreBoard displays the games score and other game related info.
GUIScoreBoard::GUIScoreBoard | ( | const GameSettings & | settings | ) |
Constructor.
[in] | settings | the game settings. |
void GUIScoreBoard::IncrementScore | ( | int | amount | ) |
Increases/decrease the score by the given amount.
[in] | amount | the amount to increase/decrease the score. |
void GUIScoreBoard::Update | ( | float | dt | ) | [virtual] |
Updates the scoreboard.
[in] | dt | the time in seconds since the last frame. |
Reimplemented from GUIPanel.