- Timestamp:
- Nov 16, 2011, 4:20:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.cc
r8934 r8940 45 45 46 46 this->bCheckpointIndex_ = 0; 47 this->bIsLast_ = false;47 //this->bIsLast_ = false; 48 48 this->bTimeLimit_ = 0; 49 49 this->isVisible_=false; … … 90 90 { 91 91 SUPER(RaceCheckPoint, XMLPort, xmlelement, mode); 92 92 Vector3 v= Vector3(0,0,0); 93 93 XMLPortParam(RaceCheckPoint, "checkpointindex", setCheckpointIndex, getCheckpointIndex, xmlelement, mode).defaultValues(0); 94 94 XMLPortParam(RaceCheckPoint, "islast", setLast, getLast, xmlelement, mode).defaultValues(false); 95 95 XMLPortParam(RaceCheckPoint, "timelimit", setTimelimit, getTimeLimit, xmlelement, mode).defaultValues(0); 96 XMLPortParamTemplate(RaceCheckPoint, "nextcheckpoints", setNextcheckpoint, getNextcheckpoint, xmlelement, mode,const Vector3&) ;96 XMLPortParamTemplate(RaceCheckPoint, "nextcheckpoints", setNextcheckpoint, getNextcheckpoint, xmlelement, mode,const Vector3&).defaultValues(v); 97 97 } 98 98 … … 102 102 103 103 SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype().get()); 104 assert(gametype); 104 105 if (gametype && this->getCheckpointIndex() == gametype->getCheckpointReached(player) && bIsTriggered) 105 106 { … … 115 116 else 116 117 { 117 gametype->newCheckpointReached(this );118 gametype->newCheckpointReached(this,player); 118 119 this->setRadarObjectColour(ColourValue::Green); //sets the radar colour of the checkpoint to green if it is reached, else it is red. 119 120 } … … 127 128 { 128 129 SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype().get()); 130 assert(gametype); 129 131 if (gametype) 130 132 {
Note: See TracChangeset
for help on using the changeset viewer.