Changeset 10889 for code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.h
- Timestamp:
- Nov 29, 2015, 9:05:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.h
r10836 r10889 28 28 29 29 /** 30 @file IceGunProjectile.h30 @file MineProjectile.h 31 31 @brief Definition of the MineProjectile class. 32 32 */ … … 36 36 37 37 #include "weapons/WeaponsPrereqs.h" 38 39 #include <string>40 38 #include "tools/Timer.h" 41 #include "Projectile.h" 39 #include "worldentities/MovableEntity.h" 40 #include "objects/collisionshapes/SphereCollisionShape.h" 41 #include "objects/triggers/DistanceTrigger.h" 42 #include "BasicProjectile.h" 42 43 43 44 namespace orxonox … … 46 47 /** 47 48 @brief 48 The MineProjectile is a projectile that may Mine up into many child projectiles. 49 @author 50 Fabien Vultier 49 TODO 51 50 @ingroup WeaponsProjectiles 52 51 */ 53 class _WeaponsExport MineProjectile : public Projectile52 class _WeaponsExport MineProjectile : public MovableEntity, public BasicProjectile 54 53 { 55 54 public: 56 55 MineProjectile(Context* context); 57 virtual ~MineProjectile() {}56 virtual ~MineProjectile(); 58 57 59 virtual void set LifeTime(float LifeTime);60 58 virtual void setMaxTimeUntilExplosion(float maxTimeUntilExplosion); 59 virtual void setTimeUntilActivation(float timeUntilActivation); 61 60 61 private: 62 bool bActive_; // The mine can only explode if it is active 63 float maxTimeUntilExplosion_; 64 float timeUntilActivation_; 65 Timer activationTimer_; 66 Timer explodeTimer_; 67 Model* modelCore_; 68 Model* modelRing1_; 69 Model* modelRing2_; 70 MovableEntity* rings_; 62 71 63 private: 64 float lifeTime_; 65 Timer explodeTimer; 72 WeakPtr<SphereCollisionShape> collisionShape_; // The collision shape of the projectile. 73 WeakPtr<DistanceTrigger> distanceTrigger_; 66 74 67 virtual void Explode(); 75 virtual void Activate(); 76 virtual void Explode(); 68 77 }; 69 78 }
Note: See TracChangeset
for help on using the changeset viewer.