- Timestamp:
- Nov 29, 2015, 9:05:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particleEffectsHS15/src/modules/weapons/weaponmodes/MineGun.h
r10836 r10889 44 44 @brief 45 45 A Mine that explodes when a ship is too close 46 @author47 Fabien Vultier48 46 @ingroup WeaponsWeaponModes 49 47 */ … … 56 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 57 55 virtual void fire(); 58 inline void setLifeTime(float lifeTime)59 { this->lifeTime_ = lifeTime; }60 inline float getLifeTime() const61 { return this->lifeTime_; }62 56 63 private: 57 inline float getMaxTimeUntilExplosion() const 58 { return this->maxTimeUntilExplosion_; } 59 inline float getTimeUntilActivation() const 60 { return this->timeUntilActivation_; } 61 protected: 62 inline void setMaxTimeUntilExplosion(float maxTimeUntilExplosion) 63 { this->maxTimeUntilExplosion_ = maxTimeUntilExplosion; } 64 inline void setTimeUntilActivation(float timeUntilActivation) 65 { this->timeUntilActivation_ = timeUntilActivation; } 66 private: 64 67 float speed_; //The speed of the fired projectile. 65 float lifeTime_;66 68 float maxTimeUntilExplosion_; 69 float timeUntilActivation_; 67 70 }; 68 71 }
Note: See TracChangeset
for help on using the changeset viewer.