- Timestamp:
- Dec 7, 2011, 2:38:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.h
r8954 r8959 32 32 #include "gametypes/GametypesPrereqs.h" 33 33 34 35 34 36 #include "objects/triggers/DistanceMultiTrigger.h" 35 37 #include "interfaces/RadarViewable.h" … … 62 64 {return this->nextcheckpoints_;} 63 65 66 inline void setNext(int index,RaceCheckPoint* p) 67 {this->next_[index]=p;} 68 inline void setLast(bool isLast) 69 { this->bIsLast_ = isLast; } 70 inline bool getLast() 71 { return this->bIsLast_; } 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. 74 PlayerInfo* reached_; 75 64 76 inline void setV(bool b) 65 77 {this->isVisible_ = b;} 66 78 protected: 67 79 virtual void fire(bool bIsTriggered,BaseObject* player); 68 inline void setLast(bool isLast) 69 { this->bIsLast_ = isLast; } 70 inline bool getLast() 71 { return this->bIsLast_; } 72 80 73 81 74 75 82 76 83 virtual void setTimelimit(float timeLimit); … … 82 89 private: 83 90 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. 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 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. 86 91 87 92 88 93 Vector3 nextcheckpoints_; //the indexes of the next check points 89 94 90 95 bool isVisible_; 91 96 97 98 std::vector<RaceCheckPoint*> next_; 92 99 }; 93 100 }
Note: See TracChangeset
for help on using the changeset viewer.