- Timestamp:
- May 26, 2011, 10:03:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.h
r8548 r8616 38 38 namespace orxonox 39 39 { 40 /** 41 @brief 42 The RaceCheckPoint class enables the creation of a check point to use in a SpaceRace level. 43 !!! Don't forget to controll the indexes of your check points and to set one last check point!!! 44 */ 40 45 class _ObjectsExport RaceCheckPoint : public DistanceTrigger, public RadarViewable 41 46 { … … 57 62 inline int getCheckpointIndex() 58 63 { return this->bCheckpointIndex_; } 59 inline void setTimelimit(int timeLimit) 60 { this->bTimeLimit_ = timeLimit;} 61 inline int getTimeLimit() 64 virtual void setTimelimit(float timeLimit); 65 inline float getTimeLimit() 62 66 { return this->bTimeLimit_;} 63 67 inline const WorldEntity* getWorldEntity() const … … 65 69 66 70 private: 67 int bCheckpointIndex_; 68 bool bIsLast_; 69 int bTimeLimit_;71 int bCheckpointIndex_; //The index of this check point. This value will be compared with the number of check points reached in the level. The check points must be indexed in ascending order beginning from zero and without any jumps between the indexes. 72 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. 73 float bTimeLimit_; //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. 70 74 71 75 };
Note: See TracChangeset
for help on using the changeset viewer.