- Timestamp:
- Apr 2, 2015, 4:08:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h
r10336 r10341 48 48 #include "worldentities/MovableEntity.h" 49 49 #include "core/CoreIncludes.h" 50 #include "objects/collisionshapes/SphereCollisionShape.h" 51 #include "../../../orxonox/worldentities/WorldEntity.h" 52 #include "GravityBombField.h" 50 53 51 54 namespace orxonox 52 55 { 53 54 class ConeCollisionShape;55 56 56 57 class _WeaponsExport GravityBomb : public BasicProjectile , public MovableEntity, public RadarViewable … … 62 63 63 64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint); 65 void detonate(); 64 66 65 67 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; 69 70 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. 75 72 76 73 };
Note: See TracChangeset
for help on using the changeset viewer.