Changeset 11071 for code/trunk/src/modules/weapons/IceGunFreezer.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/weapons/IceGunFreezer.cc
r11052 r11071 63 63 /** 64 64 @brief 65 The controlling happens here. This method defines what the controller has to do each tick.66 @param dt67 The duration of the tick.68 */69 void IceGunFreezer::tick(float dt)70 {71 SUPER(IceGunFreezer, tick, dt);72 73 74 }75 76 /**77 @brief78 65 Sets the freeze time variable to the passed value. 79 66 */ … … 101 88 102 89 // Check if the freezer is attached to a parent and check if the parent is a SpaceShip 103 if (parent != NULL&& parent->isA(Class(SpaceShip)))90 if (parent != nullptr && parent->isA(Class(SpaceShip))) 104 91 { 105 92 freezedSpaceShip_ = orxonox_cast<SpaceShip*>(parent); … … 118 105 void IceGunFreezer::stopFreezing() 119 106 { 120 if (freezedSpaceShip_ != NULL&& freezeFactor_ != 0.0)107 if (freezedSpaceShip_ != nullptr && freezeFactor_ != 0.0) 121 108 { 122 109 freezedSpaceShip_->addSpeedFactor(1/freezeFactor_);
Note: See TracChangeset
for help on using the changeset viewer.