- Timestamp:
- May 25, 2011, 9:28:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/weapons/projectiles/Projectile.h
r8578 r8579 23 23 * Fabian 'x3n' Landau 24 24 * Co-authors: 25 * simonmie25 * ... 26 26 * 27 27 */ … … 35 35 #include "worldentities/MovableEntity.h" 36 36 37 #include "BasicProjectile.h"38 39 37 namespace orxonox 40 38 { 41 class _WeaponsExport Projectile : public MovableEntity , public BasicProjectile39 class _WeaponsExport Projectile : public MovableEntity 42 40 { 43 41 public: … … 51 49 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 52 50 51 inline void setDamage(float damage) 52 { this->damage_ = damage; } 53 inline float getDamage() const 54 { return this->damage_; } 55 53 56 void setOwner(Pawn* owner); 54 57 inline Pawn* getOwner() const 55 58 { return this->owner_; } 56 59 57 58 60 private: 59 61 WeakPtr<Pawn> owner_; 60 62 float lifetime_; 63 float damage_; 64 bool bDestroy_; 61 65 Timer destroyTimer_; 62 66 };
Note: See TracChangeset
for help on using the changeset viewer.