Changeset 11052 for code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
- Timestamp:
- Jan 9, 2016, 6:26:20 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r10216 r11052 115 115 116 116 XMLPortObject(SpaceShip, Engine, "engines", addEngine, getEngine, xmlelement, mode); 117 118 117 119 } 118 120 … … 297 299 } 298 300 } 301 302 void SpaceShip::gainBoostPower(float gainedBoostPower) 303 { 304 this->boostPower_ += gainedBoostPower; 305 306 if (this->boostPower_ > this->initialBoostPower_) 307 { 308 this->boostPower_ = this->initialBoostPower_; 309 } 310 311 // If the booster is in cooldown mode and we gained boost power, the abort the cooldown. 312 if (this->isBoostCoolingDown() && this->boostPower_ > 0.0f) 313 { 314 timer_.stopTimer(); 315 this->boostCooledDown(); 316 } 317 } 318 299 319 /** 300 320 @brief
Note: See TracChangeset
for help on using the changeset viewer.