Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2015, 9:05:26 PM (9 years ago)
Author:
fvultier
Message:

promised wor for Jannis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particleEffectsHS15/src/modules/weapons/weaponmodes/MineGun.h

    r10836 r10889  
    4444    @brief
    4545        A Mine that explodes when a ship is too close
    46     @author
    47         Fabien Vultier
    4846    @ingroup WeaponsWeaponModes
    4947    */
     
    5654            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5755            virtual void fire();
    58             inline void setLifeTime(float lifeTime)
    59                 { this->lifeTime_ = lifeTime; }
    60             inline float getLifeTime() const
    61                 { return this->lifeTime_; }
    6256
    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:
    6467            float speed_; //The speed of the fired projectile.
    65             float lifeTime_;
    66 
     68            float maxTimeUntilExplosion_;
     69            float timeUntilActivation_;
    6770    };
    6871}
Note: See TracChangeset for help on using the changeset viewer.