Changeset 9263 for code/trunk/src/modules/gametypes/RaceCheckPoint.h
- Timestamp:
- Jun 3, 2012, 12:04:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/RaceCheckPoint.h
r9262 r9263 54 54 { return this->checkpointIndex_; } 55 55 56 inline void setNextcheckpoint(const Vector3& checkpoints)57 { this->nextcheckpoints_ = checkpoints; }58 inline const Vector3& getNextcheckpoint() const59 { return this->next checkpoints_; }56 void setNextCheckpointsAsVector3(const Vector3& checkpoints); 57 Vector3 getNextCheckpointsAsVector3() const; 58 const std::set<int>& getNextCheckpoints() const 59 { return this->nextCheckpoints_; } 60 60 61 61 inline void setLast(bool isLast) … … 80 80 81 81 private: 82 int checkpointIndex_; ///< The index of this check point. The race starts with the check point with the index 083 Vector3 nextcheckpoints_; ///< the indexes of the next check points84 bool bIsLast_; ///< True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level.85 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.86 PlayerInfo* player_; ///< The player that reached the checkpoint82 int checkpointIndex_; ///< The index of this check point. The race starts with the check point with the index 0 83 std::set<int> nextCheckpoints_; ///< the indexes of the next check points 84 bool bIsLast_; ///< True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level. 85 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. 86 PlayerInfo* player_; ///< The player that reached the checkpoint 87 87 }; 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.