Changeset 8855 for code/trunk/src/modules/weapons/projectiles/Projectile.h
- Timestamp:
- Aug 22, 2011, 3:05:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/Projectile.h
r8706 r8855 27 27 */ 28 28 29 /** 30 @file Projectile.h 31 @brief Definition of the Projectile class. 32 */ 33 29 34 #ifndef _Projectile_H__ 30 35 #define _Projectile_H__ … … 39 44 namespace orxonox 40 45 { 46 47 /** 48 @brief 49 Represents all 'standard' projectiles. 50 51 @author 52 Fabian 'x3n' Landau 53 @author 54 Simon Miescher 55 @ingroup WeaponsProjectiles 56 */ 41 57 class _WeaponsExport Projectile : public MovableEntity, public BasicProjectile 42 58 { … … 46 62 47 63 void setConfigValues(); 48 void destroyObject();49 64 50 65 virtual void tick(float dt); 51 66 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 52 67 53 void setOwner(Pawn* owner);54 inline Pawn* getOwner() const55 { return this->owner_; }56 57 58 68 private: 59 WeakPtr<Pawn> owner_; 60 float lifetime_; 61 Timer destroyTimer_; 69 float lifetime_; //!< The time the projectile exists. 70 Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out. 62 71 }; 63 72 }
Note: See TracChangeset
for help on using the changeset viewer.