Changeset 11989
- Timestamp:
- May 24, 2018, 3:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
r11986 r11989 224 224 int ms = this->clock_.getMilliseconds() % 1000; 225 225 226 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 } 227 231 std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 228 232 + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."); … … 234 238 this->getGametypeInfo()->sendAnnounceMessage(message); 235 239 ChatManager::message(message);*/ 236 if(checkpoint->getCheckpointIndex()==19){ 237 const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 238 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME."; 239 240 } 240 241 241 242 242 } … … 245 245 { 246 246 247 std::string message("RACE STARTED "); 248 this->getGametypeInfo()->sendAnnounceMessage(message); 249 ChatManager::message(message); 250 247 std::string message("RACE STARTED"); 248 this->getGametypeInfo()->sendAnnounceMessage(message); 249 ChatManager::message(message); 250 251 std::string message2("Press W for forward acceleration, press W+space for boost!"); 252 this->getGametypeInfo()->sendAnnounceMessage(message2); 253 ChatManager::message(message2); 251 254 252 255 for (Engine* engine : ObjectList<Engine>())
Note: See TracChangeset
for help on using the changeset viewer.