- Timestamp:
- May 24, 2018, 3:56:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
r11989 r11997 193 193 if (this->bTimeIsUp_) 194 194 { 195 message = multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds !!\n" 196 + "You loose!"; 195 message = "TIME IS UP! YOU LOOSE!"; 197 196 } 198 197 else if(this->bLost){ 199 message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents.YOU LOOSE!";198 message = "YOU LOOSE!"; 200 199 201 200 } … … 224 223 int ms = this->clock_.getMilliseconds() % 1000; 225 224 226 if(checkpoint->getCheckpointIndex()==18){ 227 const std::string& message = player->getName() + "reached the last checkpoint after " 228 + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME."; 229 230 } 225 231 226 std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 232 227 + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."); … … 249 244 ChatManager::message(message); 250 245 246 247 248 for (Engine* engine : ObjectList<Engine>()) 249 engine->setActive(true); 250 251 251 std::string message2("Press W for forward acceleration, press W+space for boost!"); 252 252 this->getGametypeInfo()->sendAnnounceMessage(message2); 253 253 ChatManager::message(message2); 254 255 for (Engine* engine : ObjectList<Engine>())256 engine->setActive(true);257 254 } 258 255
Note: See TracChangeset
for help on using the changeset viewer.