Changeset 11967 for code/branches/RacingBots_FS18
- Timestamp:
- May 17, 2018, 2:31:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.h
r11857 r11967 54 54 55 55 public: 56 SpaceRace(Context* context); 56 SpaceRace(Context* context);//, SpaceRace* parentRace); 57 57 virtual ~SpaceRace() {} 58 58 … … 82 82 inline Clock& getClock() 83 83 { return this->clock_; } 84 //inline void setParentRace(SpaceRace* parentRace) { this->parentRace = parentRace; } 84 85 85 86 virtual bool allowPawnHit(Pawn* victim, Pawn* originator) override; … … 88 89 bool countdown_mode = false; 89 90 float time_passed = 4.0f; 91 92 bool bLost=false; 90 93 91 94 private: 92 95 bool cantMove_; ///< Helper variable, used to stall the engines before the race starts. 93 96 std::map<PlayerInfo*, RaceCheckPoint*> checkpointReached_; ///< The number of the last check point reached by each player. 94 bool bTimeIsUp_; 97 bool bTimeIsUp_; ///< True if one of the check points is reached too late. 95 98 96 99 Clock clock_; ///< The clock starts running at the beginning of the game. It is used to give the time at each check point, the give the time at the end of the game, and to stop the game if a check point is reached too late.
Note: See TracChangeset
for help on using the changeset viewer.