Changeset 10629 for code/trunk/src/modules/weapons/projectiles/Projectile.h
- Timestamp:
- Oct 10, 2015, 4:34:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/Projectile.h
r10216 r10629 39 39 #include "tools/Timer.h" 40 40 #include "worldentities/MovableEntity.h" 41 #include "objects/collisionshapes/SphereCollisionShape.h" 41 42 42 43 #include "BasicProjectile.h" … … 66 67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint); 67 68 69 protected: 70 virtual void setCollisionShapeRadius(float radius); 71 68 72 private: 69 73 float lifetime_; //!< The time the projectile exists. 70 74 Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out. 75 WeakPtr<SphereCollisionShape> collisionShape_; // The collision shape of the projectile. 71 76 }; 72 77 }
Note: See TracChangeset
for help on using the changeset viewer.