00001 #ifndef CAPOSITIONTABLE_H 00002 #define CAPOSITIONTABLE_H 00003 00004 #include "caplayer.h" 00005 00006 #define CA_POSITIONTABLE CAPositionTable::getPositionTable() 00007 00011 class CAPositionTable { 00012 public: 00013 static CAPositionTable* getPositionTable(); 00014 ~CAPositionTable(); 00015 00016 void resetRace(); 00017 void playerFinishedRace( CAPlayer* player ); 00018 void playerDied( CAPlayer* player ); 00019 00020 private: 00021 CAPositionTable(); 00022 00023 private: 00025 00026 static CAPositionTable* theOneAndOnlyInstance; 00027 00032 CAPlayer* raceRankList[CA_MAXPLAYERS]; 00034 int raceRankIndex; 00036 int raceRankIndexBottom; 00037 00038 }; 00039 00040 #endif
1.5.0