#include <capositiontable.h>
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 CAPositionTable * | getPositionTable () |
| Returns the one and only instance of position table. | |
| 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.
1.5.0