Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2011, 5:25:00 PM (14 years ago)
Author:
simonmie
Message:

New Shield effect added (from tibork), first working BasicProjectile class, changes in weapon classes to fit new BasicProjectile system, some spam messages in Pawn.cc removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gameimmersion/src/modules/weapons/projectiles/Projectile.h

    r8386 r8492  
    3535#include "worldentities/MovableEntity.h"
    3636
     37#include "BasicProjectile.h"
     38
    3739namespace orxonox
    3840{
    39     class _WeaponsExport Projectile : public MovableEntity
     41    class _WeaponsExport Projectile : public MovableEntity, public BasicProjectile
    4042    {
    4143        public:
     
    4951            virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
    5052
    51             inline void setDamage(float damage)
     53/*            inline void setDamage(float damage)
    5254                { this->damage_ = damage;  COUT(3) << "DAMAGE-SET-FUNKTION WIRD AUFGERUFEN" << endl; }
    5355            inline float getDamage() const
    5456                { return this->damage_; }
    55 
     57*/
    5658            void setOwner(Pawn* owner);
    5759            inline Pawn* getOwner() const
    5860                { return this->owner_; }
    5961
    60 ////////////////////me
     62/*///////////////////me
    6163
    6264            inline void setHealthDamage(float healthdamage)
     
    7173
    7274///////////////////end me
    73 
     75*/
    7476
    7577        private:
    7678            WeakPtr<Pawn> owner_;
    7779            float lifetime_;
    78             float damage_;
     80/*            float damage_;
    7981///////me
    8082            float healthdamage_;
     
    8284///////end me
    8385            bool bDestroy_;
    84             Timer destroyTimer_;
     86*/            Timer destroyTimer_;
    8587    };
    8688}
Note: See TracChangeset for help on using the changeset viewer.