Changeset 9964 for code/trunk/src/modules/gametypes/RaceCheckPoint.h
- Timestamp:
- Jan 3, 2014, 9:44:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/RaceCheckPoint.h
r9963 r9964 61 61 void setNextCheckpointsAsVector3(const Vector3& checkpoints); 62 62 Vector3 getNextCheckpointsAsVector3(); 63 Vector3 getVirtualNextCheckpointsAsVector3() const;64 void setNextVirtualCheckpointsAsVector3(const Vector3& checkpoints);65 int changeVirtualToRealCheckPoint(int);66 67 const std::set<int>& getVirtualNextCheckpoints() const68 {69 return this->nextCheckpointsVirtual_;70 }71 63 72 64 std::set<int> getNextCheckpoints() 73 65 { 74 66 return nextCheckpoints_; 75 std::set<int> temp;76 std::set<int> temp2=getVirtualNextCheckpoints();77 for (std::set<int>::iterator it = temp2.begin(); it!=temp2.end(); ++it){78 temp.insert(changeVirtualToRealCheckPoint((*it)));79 }80 return temp;81 67 } 82 68 inline void setLast(bool isLast) … … 120 106 float timeLimit_; ///< The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses. 121 107 std::vector<PlayerInfo*> players_; ///< The player that reached the checkpoint 122 std::set<int> nextCheckpointsVirtual_;123 std::map<int,int> virtualToRealCheckPoints_; // if virtualChepoint was inserted the original can be reconstructed124 108 }; 125 109 }
Note: See TracChangeset
for help on using the changeset viewer.