Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 2:26:25 PM (13 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/SimpleRocket.h

    r7163 r8533  
    3636#include "graphics/ParticleSpawner.h"
    3737
     38#include "BasicProjectile.h"
     39
    3840namespace orxonox
    3941{
     
    4648       Gabriel Nadler (Original file: Oli Scheuss)
    4749    */
    48     class _WeaponsExport SimpleRocket : public ControllableEntity
     50    class _WeaponsExport SimpleRocket : public ControllableEntity, public BasicProjectile
    4951    {
    5052        public:
     
    114116            { return this->fuel_; }
    115117
    116             inline void setDamage(float damage)
     118/*            inline void setDamage(float damage)
    117119                { this->damage_ = damage; }
    118120            inline float getDamage() const
    119121                { return this->damage_; }
    120 
     122*/
    121123
    122124        private:
    123125            WeakPtr<Pawn> owner_;
    124126            Vector3 localAngularVelocity_;
    125             float damage_;
    126             bool bDestroy_;
     127//            float damage_;
     128//            bool bDestroy_;
    127129            bool fuel_; //!< Bool is true while the rocket "has fuel"
    128130
Note: See TracChangeset for help on using the changeset viewer.