Changeset 10724 for code/branches/fabienHS15/src/orxonox
- Timestamp:
- Oct 30, 2015, 7:51:49 PM (9 years ago)
- Location:
- code/branches/fabienHS15/src/orxonox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/orxonox/overlays/OrxonoxOverlay.cc
r10624 r10724 450 450 tempTx->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, colour); 451 451 } 452 453 void OrxonoxOverlay::setZOrder(unsigned short order) 454 { 455 if (this->overlay_) 456 { 457 this->overlay_->setZOrder(order); 458 } 459 } 452 460 } -
code/branches/fabienHS15/src/orxonox/overlays/OrxonoxOverlay.h
r10721 r10724 186 186 virtual void changedOverlayGroup() 187 187 { this->changedVisibility(); } 188 virtual void setZOrder(unsigned short order); 188 189 189 190 protected: -
code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.cc
r10721 r10724 351 351 352 352 // If there was no change in a loop, all magazines are full (or locked due to loading) 353 // Because the first loop does not sta t at the beginning of the map we have to treat is separately353 // Because the first loop does not start at the beginning of the map we have to treat is separately 354 354 if (!change && !firstLoop) 355 355 { -
code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.h
r10713 r10724 78 78 inline unsigned int getMaxMunitionPerMagazine() const 79 79 { return this->maxMunitionPerMagazine_; } 80 inline bool getUseSeparateMagazines() const 81 { return deployment_ == MunitionDeployment::Separate; } 82 inline bool getStackMunition() const 83 { return deployment_ == MunitionDeployment::Stack; } 80 inline MunitionDeployment::Value getMunitionDeployment() const 81 { return deployment_; } 82 84 83 85 84 bool canTakeMunition(unsigned int amount, WeaponMode* user) const; -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/SpaceShip.cc
r10216 r10724 297 297 } 298 298 } 299 300 void SpaceShip::gainBoostPower(float gainedBoostPower) 301 { 302 this->boostPower_ += gainedBoostPower; 303 304 if (this->boostPower_ > this->initialBoostPower_) 305 { 306 this->boostPower_ = this->initialBoostPower_; 307 } 308 309 // If the booster is in cooldown mode and we gained boost power, the abort the cooldown. 310 if (this->isBoostCoolingDown() && this->boostPower_ > 0.0f) 311 { 312 timer_.stopTimer(); 313 this->boostCooledDown(); 314 } 315 } 316 299 317 /** 300 318 @brief -
code/branches/fabienHS15/src/orxonox/worldentities/pawns/SpaceShip.h
r10437 r10724 250 250 inline float getShakeAmplitude() const 251 251 { return this->shakeAmplitude_; } 252 /** 253 @brief Add boost power. Is non-negative. 254 @return Returns the current boost power. 255 */ 256 void gainBoostPower(float gainedBoostPower); 252 257 253 258 protected:
Note: See TracChangeset
for help on using the changeset viewer.