Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10336


Ignore:
Timestamp:
Mar 26, 2015, 4:14:43 PM (10 years ago)
Author:
meggiman
Message:

Started implementing GravityBomb.cc

Location:
code/branches/weaponFS15/src/modules/weapons
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/WeaponsPrereqs.h

    r8855 r10336  
    8383    class Rocket;
    8484    class SimpleRocket;
     85    class GravityBomb;
    8586
    8687    // weaponmodes
  • code/branches/weaponFS15/src/modules/weapons/projectiles/CMakeLists.txt

    r8855 r10336  
    77  Rocket.cc
    88  SimpleRocket.cc
     9  GravityBomb.cc
    910)
  • code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h

    r10326 r10336  
    4444#include "graphics/ParticleSpawner.h"
    4545#include "interfaces/RadarViewable.h"
    46 
     46#include "objects/ForceField.h"
    4747#include "BasicProjectile.h"
     48#include "worldentities/MovableEntity.h"
     49#include "core/CoreIncludes.h"
    4850
    4951namespace orxonox
     
    5254        class ConeCollisionShape;
    5355
    54         class _WeaponsExport GravityBomb : public BasicProjectile , public RadarViewable, public MovableEntity
     56        class _WeaponsExport GravityBomb : public BasicProjectile , public MovableEntity, public RadarViewable
    5557        {
    5658                public:
    5759                        GravityBomb(Context* context);
     60                        virtual ~GravityBomb();
     61                        virtual void tick(float dt);
     62
     63                        virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint);
    5864
    5965                private:
     66                static const float FUEL_START;
     67                static const float FORCE_SPHERE_START_RADIUS;
     68                static const float FORCE_SPHERE_START_STRENGTH;
     69
     70                float fuel_;
    6071                float lifetime_;
     72                float forceSphereRadius_;
     73                float forceStrength_;
    6174
    62         }
     75
     76        };
    6377}
    6478#endif /* GravityBOMB_H_ */
Note: See TracChangeset for help on using the changeset viewer.