Changeset 11283 for code/branches/SpaceRace_HS16/src/modules
- Timestamp:
- Nov 14, 2016, 2:34:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRace.cc
r11281 r11283 79 79 { 80 80 Gametype::start(); 81 82 81 if (true) 83 82 { … … 138 137 139 138 140 // spawns the players when the countdown starts, but deactivates their engines139 /* // spawns the players when the countdown starts, but deactivates their engines 141 140 if (this->isStartCountdownRunning() && !this->cantMove_) 142 141 { … … 149 148 150 149 151 gt Info_->setStartCountdown(10.0);150 gtinfo_->setStartCountdown(50.0); 152 151 153 152 154 /*this->spawnPlayersIfRequested();155 this->cantMove_ = true;156 157 for (Engine* engine : ObjectList<Engine>()){158 engine->setActive(false);159 }160 161 162 163 std::string message("BE FAST BE FIRST");164 this->getGametypeInfo()->sendAnnounceMessage(message);165 ChatManager::message(message);166 167 Timer* countdownTimer = new Timer();168 countdownTimer->setTimer(11, false, createExecutor(createFunctor(&SpaceRace::countdownFinished, this)));*/169 153 170 154 … … 187 171 this->getGametypeInfo()->sendAnnounceMessage(message); 188 172 ChatManager::message(message); 189 } 173 }*/ 190 174 191 175 } … … 199 183 int ms = this->clock_.getMilliseconds() % 1000; 200 184 201 const std::string& message = "Checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 202 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."; 203 this->getGametypeInfo()->sendAnnounceMessage(message); 204 ChatManager::message(message); 185 186 187 const std::string& message = player->getName() + "reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 188 + "after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."; 189 this->getGametypeInfo()->sendAnnounceMessage(message); 190 ChatManager::message(message); 191 205 192 } 206 193 … … 215 202 for (Engine* engine : ObjectList<Engine>()) 216 203 engine->setActive(true); 204 205 217 206 218 207 }
Note: See TracChangeset
for help on using the changeset viewer.