Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

EndGame Class Reference

The EndGame object ends the game by calling resetMap on the global Game object when time runs out. More...

#include <EndGame.h>

Inheritance diagram for EndGame:

GameLogic List of all members.

Public Methods

 EndGame ()
 Constructs the EndGame with a default timeToReset.

 EndGame (float timeToReset)
 Constructs the EndGame to end the game after the given amount of time.

virtual ~EndGame ()
 Destructor.

bool update (float dt)
 Update counts down the time left.


Static Public Methods

void initTimeToReset (ConfigFile &f)
 Initializes the default timeToReset from information in the ConfigFile.


Detailed Description

The EndGame object ends the game by calling resetMap on the global Game object when time runs out.


Constructor & Destructor Documentation

EndGame::EndGame  
 

Constructs the EndGame with a default timeToReset.

EndGame::EndGame float    timeToReset [explicit]
 

Constructs the EndGame to end the game after the given amount of time.

EndGame::~EndGame   [virtual]
 

Destructor.


Member Function Documentation

void EndGame::initTimeToReset ConfigFile   f [static]
 

Initializes the default timeToReset from information in the ConfigFile.

bool EndGame::update float    dt [virtual]
 

Update counts down the time left.

Restarts the game after time runs out.

Implements GameLogic.


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18