Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 2:26:25 PM (14 years ago)
Author:
simonmie
Message:

SimpleRocket and Rocket are now BasicProjectiles - damage is working now correctly with these two. More spam messages removed.

File:
1 edited

Legend:

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

    r7163 r8533  
    3535#include "worldentities/ControllableEntity.h"
    3636
     37#include "BasicProjectile.h"
     38
    3739namespace orxonox
    3840{
     
    4648        Oli Scheuss
    4749    */
    48     class _WeaponsExport Rocket : public ControllableEntity
     50    class _WeaponsExport Rocket : public ControllableEntity, public BasicProjectile
    4951    {
    5052        public:
     
    109111                { return this->owner_; }
    110112
    111             inline void setDamage(float damage)
     113/*            inline void setDamage(float damage)
    112114                { this->damage_ = damage; }
    113115            inline float getDamage() const
    114116                { return this->damage_; }
     117*/
     118
    115119            virtual void fired(unsigned int firemode);
    116120
     
    118122            WeakPtr<Pawn> owner_;
    119123            Vector3 localAngularVelocity_;
    120             float damage_;
    121             bool bDestroy_;
     124//            float damage_;
     125//            bool bDestroy_;
    122126
    123127            WeakPtr<PlayerInfo> player_;
Note: See TracChangeset for help on using the changeset viewer.