- Timestamp:
- Oct 2, 2015, 11:03:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFabien/src/modules/weapons/IceGunFreezer.cc
r10606 r10608 92 92 } 93 93 94 /** 95 @brief 96 Try to slow down the WorldEntity where this is attached to. It is only possible to slow down a SpaceShip. 97 */ 94 98 void IceGunFreezer::startFreezing() 95 99 { 96 100 WorldEntity* parent = this->getParent(); 97 101 102 // Check if the freezer is attached to a parent and check if the parent is a SpaceShip 98 103 if (parent != NULL && parent->isA(Class(SpaceShip))) 99 104 { 100 105 freezedSpaceShip_ = orxonox_cast<SpaceShip*>(parent); 106 //Slow down the SpaceShip 101 107 freezedSpaceShip_->addSpeedFactor(freezeFactor_); 102 108 } … … 106 112 } 107 113 114 /** 115 @brief 116 This method is called by the timer. It gives back the original engine strength to the hit SpaceShip. 117 */ 108 118 void IceGunFreezer::stopFreezing() 109 119 {
Note: See TracChangeset
for help on using the changeset viewer.