Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 10:55:38 PM (8 years ago)
Author:
fvultier
Message:

Mine damages pawns within range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.h

    r10897 r10908  
    2121 *
    2222 *   Author:
     23 *      Jannis Holzer
    2324 *      Fabien Vultier
    2425 *   Co-authors:
     
    6061            virtual void setMaxTimeUntilExplosion(float maxTimeUntilExplosion);
    6162            virtual void setTimeUntilActivation(float timeUntilActivation);
    62 
     63        protected:
     64            static const float triggerRadius_;
     65            static const float damageRadius_;
     66            static const float collisionShapeRadius_;
    6367        private:
    64             bool bActive_; // The mine can only explode if it is active
     68            bool bAllowExplosion_; // The mine can only explode if it is active
    6569            float maxTimeUntilExplosion_;
    6670            float timeUntilActivation_;
     
    7074            Model* modelRing1_;
    7175            Model* modelRing2_;
    72             MovableEntity* rings_;
     76            Model* modelRing3_;
     77            Model* modelRing4_;
     78            MovableEntity* rings1_;
     79            MovableEntity* rings2_;
     80            MovableEntity* core_;
     81            ParticleEmitter* emitter_;
    7382
    7483            WeakPtr<SphereCollisionShape> collisionShape_; // The collision shape of the projectile.
    7584            WeakPtr<DistanceTrigger> distanceTrigger_;
    7685
    77             virtual void Activate();
    78             virtual void Explode();
     86            virtual void destructionEffect();
     87            virtual void allowExplosion();
     88            virtual void explode();
    7989    };
    8090}
Note: See TracChangeset for help on using the changeset viewer.