Changeset 8548 for code/branches/spacerace/src/modules
- Timestamp:
- May 23, 2011, 5:20:40 PM (13 years ago)
- Location:
- code/branches/spacerace/src/modules/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.cc
r8494 r8548 45 45 this->bCheckpointIndex_ = 0; 46 46 this->bIsLast_ = false; 47 this->bTimeLimit_=0; 47 48 48 49 this->setRadarObjectColour(ColourValue::Red); … … 71 72 XMLPortParam(RaceCheckPoint, "checkpointindex", setCheckpointIndex, getCheckpointIndex, xmlelement, mode).defaultValues(0); 72 73 XMLPortParam(RaceCheckPoint, "islast", setLast, getLast, xmlelement, mode).defaultValues(false); 74 XMLPortParam(RaceCheckPoint, "timelimit", setTimelimit, getTimeLimit, xmlelement, mode).defaultValues(0); 73 75 } 74 76 -
code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.h
r8494 r8548 57 57 inline int getCheckpointIndex() 58 58 { return this->bCheckpointIndex_; } 59 inline void setTimelimit(int timeLimit) 60 { this->bTimeLimit_ = timeLimit;} 61 inline int getTimeLimit() 62 { return this->bTimeLimit_;} 59 63 inline const WorldEntity* getWorldEntity() const 60 64 { return this; } … … 63 67 int bCheckpointIndex_; 64 68 bool bIsLast_; 65 69 int bTimeLimit_; 66 70 67 71 };
Note: See TracChangeset
for help on using the changeset viewer.