Changeset 9262 for code/trunk/src/modules/gametypes/SpaceRace.h
- Timestamp:
- Jun 2, 2012, 11:08:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRace.h
r9261 r9262 61 61 virtual void end(); 62 62 63 virtual void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player); 64 65 inline void setCheckpointReached(int index, PlayerInfo* player) 66 { this->checkpointReached_[player] = index;} 63 void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player); 67 64 inline int getCheckpointReached(PlayerInfo* player) 68 65 { return this->checkpointReached_[player]; } … … 81 78 82 79 private: 83 bool cantMove_; 80 bool cantMove_; ///< Helper variable, used to stall the engines before the race starts. 84 81 std::map<PlayerInfo*, int> checkpointReached_; ///< The number of the last check point reached by each player. 85 82 bool bTimeIsUp_; ///< True if one of the check points is reached too late.
Note: See TracChangeset
for help on using the changeset viewer.