- Timestamp:
- May 24, 2018, 3:03:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
r11982 r11986 142 142 } 143 143 144 std::string message("Use headphones to hear the countdown! Press W for forward acceleration, W+space barfor boost!");144 std::string message("Use headphones to hear the countdown! Press W for forward acceleration, press W+space for boost!"); 145 145 146 146 this->getGametypeInfo()->sendAnnounceMessage(message); … … 191 191 int ms = static_cast<int>(this->clock_.getMilliseconds() - 1000*s); 192 192 std::string message; 193 message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents. YOU LOOSE!";194 195 193 if (this->bTimeIsUp_) 196 194 { … … 198 196 + "You loose!"; 199 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!"; 200 201 } 200 202 201 203 else … … 207 209 if (!this->hasEnded()) 208 210 { 211 209 212 this->getGametypeInfo()->sendAnnounceMessage(message); 210 213 ChatManager::message(message); … … 222 225 223 226 224 225 const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 227 std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 228 + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."); 229 230 this->getGametypeInfo()->sendAnnounceMessage(message); 231 ChatManager::message(message); 232 /* const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 226 233 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."; 227 234 this->getGametypeInfo()->sendAnnounceMessage(message); 228 ChatManager::message(message); 229 if(checkpoint->getCheckpointIndex()== 20){235 ChatManager::message(message);*/ 236 if(checkpoint->getCheckpointIndex()==19){ 230 237 const std::string& message = player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 231 238 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME.";
Note: See TracChangeset
for help on using the changeset viewer.