Changeset 11966
- Timestamp:
- May 17, 2018, 2:30:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
r11938 r11966 85 85 this->cantMove_ = false; 86 86 this->bTimeIsUp_ = false; 87 88 87 this->numberOfBots_ = 5; // quick fix: don't allow default-bots to enter the race 88 this->bLost =false; 89 89 //we fixed the number of bots in order to have the same starting position all the time ! 90 90 } … … 125 125 { 126 126 engine->setActive(false); 127 engine->addSpeedMultiply(1.7); 128 129 130 } 131 127 engine->setAccelerationFront(100.0f); 128 } 132 129 133 130 //append spawn positions to bots … … 197 194 { 198 195 message = multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds !!\n" 199 + "You lose!"; 200 } 196 + "You loose!"; 197 } 198 else if(this->bLost) 199 message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents. YOU LOOSE!"; 201 200 else 202 201 { … … 226 225 this->getGametypeInfo()->sendAnnounceMessage(message); 227 226 ChatManager::message(message); 227 if(checkpoint->getCheckpointIndex()==20){ 228 const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 229 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME."; 230 231 } 228 232 229 233 }
Note: See TracChangeset
for help on using the changeset viewer.