- Timestamp:
- May 9, 2011, 3:29:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spacerace/src/modules/gametypes/SpaceRace.h
r8250 r8428 34 34 #include "RaceCheckPoint.h" 35 35 #include <boost/concept_check.hpp> 36 #include <util/Clock.h> 37 #include <string.h> 38 #include <set> 36 39 37 40 namespace orxonox 38 41 { 42 /* class PlayerScore { 43 public: 44 PlayerScore() { 45 this->name = ""; 46 this->time =0; 47 } 48 PlayerScore(std::string name, float time) { 49 this->name_ = name; 50 this->time_ = time; 51 } 52 PlayerScore(float time) { 53 this->name_ = "Player"; 54 this->time_ = time; 55 } 56 57 private: 58 std::string name_; 59 float time_; 60 };*/ 61 39 62 class _OrxonoxExport SpaceRace : public Gametype 40 63 { 41 64 public: 42 65 SpaceRace(BaseObject* creator); 43 virtual ~SpaceRace() {};66 virtual ~SpaceRace() {} 44 67 45 68 virtual void tick(float dt); 46 69 47 inline void newCheckpointReached() 48 { this->checkpointsReached_++; } 70 virtual void start(); 71 virtual void end(); 72 73 virtual void newCheckpointReached(); 74 49 75 inline void setCheckpointsReached(int n) 50 76 { this->checkpointsReached_ = n;} … … 56 82 private: 57 83 int checkpointsReached_; 84 Clock *clock_; 85 std::set<float> scores_; 86 58 87 }; 59 88 }
Note: See TracChangeset
for help on using the changeset viewer.