Changeset 9016 for code/trunk/src/orxonox/infos
- Timestamp:
- Feb 15, 2012, 11:51:58 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/infos/GametypeInfo.cc
r8858 r9016 71 71 this->bStarted_ = false; 72 72 this->bEnded_ = false; 73 this->startCountdown_ = 0.0f;73 this->startCountdown_ = 10.0f; 74 74 this->bStartCountdownRunning_ = false; 75 this->counter_ = 0;75 this->counter_ = 10; 76 76 this->spawned_ = false; 77 77 this->readyToSpawn_ = false; … … 164 164 { 165 165 if(this->bStarted_) 166 return;166 { return;} 167 167 168 168 this->bStarted_ = true; 169 169 this->changedStarted(); 170 171 170 172 } 171 173 -
code/trunk/src/orxonox/infos/GametypeInfo.h
r8706 r9016 119 119 inline const std::string& getHUDTemplate() const 120 120 { return this->hudtemplate_; } 121 122 inline unsigned int getNumberOfPlayers() const 123 { return this->spawnedPlayers_.size(); } 121 124 122 125 void sendAnnounceMessage(const std::string& message); -
code/trunk/src/orxonox/infos/PlayerInfo.cc
r8891 r9016 36 36 #include "worldentities/ControllableEntity.h" 37 37 #include "controllers/Controller.h" 38 #include "worldentities/pawns/SpaceShip.h" 38 39 39 40 namespace orxonox … … 57 58 58 59 this->registerVariables(); 60 59 61 } 60 62 … … 170 172 171 173 this->changedControllableEntity(); 174 SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity); 175 if (spaceship != NULL) 176 { 177 spaceship->setRVName(this->getName()); 178 } 172 179 } 173 180
Note: See TracChangeset
for help on using the changeset viewer.