Changeset 9261 for code/trunk
- Timestamp:
- Jun 2, 2012, 10:46:25 PM (13 years ago)
- Location:
- code/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRace.cc
r9260 r9261 74 74 } 75 75 76 void SpaceRace::start()77 {78 this->spawnPlayersIfRequested();79 Gametype::checkStart();80 this->cantMove_ = true;81 82 for (ObjectList<Engine>::iterator it = ObjectList<Engine>::begin(); it; ++it)83 it->setActive(false);84 85 this->addBots(this->numberOfBots_);86 }87 88 76 void SpaceRace::tick(float dt) 89 77 { 90 78 SUPER(SpaceRace,tick,dt); 79 80 if (this->isStartCountdownRunning() && !this->cantMove_) 81 { 82 this->spawnPlayersIfRequested(); 83 this->cantMove_ = true; 84 85 for (ObjectList<Engine>::iterator it = ObjectList<Engine>::begin(); it; ++it) 86 it->setActive(false); 87 } 91 88 92 89 if (!this->isStartCountdownRunning() && this->cantMove_) -
code/trunk/src/modules/gametypes/SpaceRace.h
r9260 r9261 59 59 void tick(float dt); 60 60 61 virtual void start();62 61 virtual void end(); 63 62 -
code/trunk/src/orxonox/gametypes/Gametype.cc
r9260 r9261 404 404 this->start(); 405 405 else 406 { 406 407 this->gtinfo_->setStartCountdown(this->initialStartCountdown_); 407 this->gtinfo_->startStartCountdown(); 408 this->gtinfo_->startStartCountdown(); 409 } 408 410 } 409 411 }
Note: See TracChangeset
for help on using the changeset viewer.