Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 2, 2015, 4:08:52 PM (10 years ago)
Author:
meggiman
Message:

Started implementing GravityBombField

File:
1 edited

Legend:

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

    r10336 r10341  
    4848#include "worldentities/MovableEntity.h"
    4949#include "core/CoreIncludes.h"
     50#include "objects/collisionshapes/SphereCollisionShape.h"
     51#include "../../../orxonox/worldentities/WorldEntity.h"
     52#include "GravityBombField.h"
    5053
    5154namespace orxonox
    5255{
    53 
    54         class ConeCollisionShape;
    5556
    5657        class _WeaponsExport GravityBomb : public BasicProjectile , public MovableEntity, public RadarViewable
     
    6263
    6364                        virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint);
     65                        void detonate();
    6466
    6567                private:
    66                 static const float FUEL_START;
    67                 static const float FORCE_SPHERE_START_RADIUS;
    68                 static const float FORCE_SPHERE_START_STRENGTH;
     68                static const float INITIAL_VELOCITY;
     69                static const float SLOW_DOWN_RATIO;
    6970
    70                 float fuel_;
    71                 float lifetime_;
    72                 float forceSphereRadius_;
    73                 float forceStrength_;
    74 
     71                float velocityAtLastTick_; //Used to check wether the Object is already accelarating in the oposite direction to detect the time to detonate it.
    7572
    7673        };
Note: See TracChangeset for help on using the changeset viewer.