Changeset 8767 for code/trunk/src/modules/gametypes/SpaceRace.h
- Timestamp:
- Jul 20, 2011, 11:27:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRace.h
r8706 r8767 30 30 #define _SpaceRace_H__ 31 31 32 #include "gametypes/GametypesPrereqs.h" 33 34 #include <set> 35 #include <string> 36 37 #include <util/Clock.h> 38 32 39 #include "gametypes/Gametype.h" 33 #include "gametypes/GametypesPrereqs.h" 40 34 41 #include "RaceCheckPoint.h" 35 #include <boost/concept_check.hpp>36 #include <util/Clock.h>37 #include <string.h>38 #include <set>39 42 40 43 namespace orxonox … … 47 50 { 48 51 friend class RaceCheckPoint; 49 52 50 53 public: 51 54 SpaceRace(BaseObject* creator); … … 53 56 54 57 virtual void start(); 55 58 virtual void end(); 56 59 57 60 virtual void newCheckpointReached(); 58 61 59 62 inline void setCheckpointsReached(int n) 60 { this->bCheckpointsReached_ = n;}63 { this->checkpointsReached_ = n;} 61 64 inline int getCheckpointsReached() 62 { return this->bCheckpointsReached_; }65 { return this->checkpointsReached_; } 63 66 inline void timeIsUp() 64 { this->bTimeIsUp_ = true;}67 { this->bTimeIsUp_ = true;} 65 68 66 69 protected: 67 70 68 71 private: 69 int bCheckpointsReached_; //The current number of check points reached by the player.72 int checkpointsReached_; //The current number of check points reached by the player. 70 73 std::set<float> scores_; //The times of the players are saved in a set. 71 74 bool bTimeIsUp_; //True if one of the check points is reached too late.
Note: See TracChangeset
for help on using the changeset viewer.