Changeset 11982 for code/branches/RacingBots_FS18/src/modules
- Timestamp:
- May 24, 2018, 1:56:22 PM (7 years ago)
- Location:
- code/branches/RacingBots_FS18/src/modules/gametypes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
r11977 r11982 142 142 } 143 143 144 std::string message("Use headphones to hear the countdown! It is useful to start with aboost!");144 std::string message("Use headphones to hear the countdown! Press W for forward acceleration, W+space bar for boost!"); 145 145 146 146 this->getGametypeInfo()->sendAnnounceMessage(message); -
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
r11977 r11982 107 107 return returnVec; 108 108 } 109 void SpaceRaceController::endtheGame() const {109 /*void SpaceRaceController::endtheGame() const { 110 110 SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype()); 111 111 assert(gametype); … … 114 114 gametype->end(); 115 115 116 } 116 }*/ 117 117 /* 118 118 * called from 'findStaticCheckpoints' … … 186 186 187 187 } 188 if(minNextRaceCheckPoint == nullptr) { endtheGame();orxout()<<"nullptr found @181 SpaceRaceController" << endl;}188 if(minNextRaceCheckPoint == nullptr) { orxout()<<"nullptr found @181 SpaceRaceController" << endl;} 189 189 return minNextRaceCheckPoint; 190 190 } … … 252 252 if (checkpoint->getCheckpointIndex() == index){ 253 253 //if(checkpoint == nullptr) orxout()<<"returned nullptr @line 234 SpaceRaceController"<<endl; 254 orxout()<< "index of the checkpoint "<< index <<endl;254 //orxout()<< "index of the checkpoint "<< index <<endl; 255 255 res = checkpoint; 256 256 return res; 257 257 } 258 258 } 259 if(index>2 )260 this->endtheGame(); 259 /* if(index>2 ) 260 this->endtheGame();*/ 261 261 262 262 return res; -
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.h
r11977 r11982 58 58 RaceCheckPoint* nextPointFind(RaceCheckPoint*); 59 59 RaceCheckPoint* adjustNextPoint(); 60 void endtheGame() const;60 //void endtheGame() const; 61 61 62 62 std::vector<RaceCheckPoint*> findStaticCheckpoints(RaceCheckPoint*, const std::vector<RaceCheckPoint*>&);
Note: See TracChangeset
for help on using the changeset viewer.