CAPositionTable Class Reference

Controls the position table data. More...

#include <capositiontable.h>

List of all members.

Public Member Functions

 ~CAPositionTable ()
 Destructor.
void resetRace ()
 Resets the lap information (rank list).
void playerFinishedRace (CAPlayer *player)
 Registers a player in the current lap rank list.
void playerDied (CAPlayer *player)
 Registers a player in the current lap rank list if he died.

Static Public Member Functions

static CAPositionTablegetPositionTable ()
 Returns the one and only instance of position table.


Detailed Description

Controls the position table data.

Author:
Andrew Mustun


Member Function Documentation

CAPositionTable * CAPositionTable::getPositionTable (  )  [static]

Returns the one and only instance of position table.

If it doesn't exist yet, it gets created here.

void CAPositionTable::playerFinishedRace ( CAPlayer player  ) 

Registers a player in the current lap rank list.

The first player who calls this function is the lap winner.

void CAPositionTable::playerDied ( CAPlayer player  ) 

Registers a player in the current lap rank list if he died.

The first player who calls this function is the lap looser.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0