Changeset 10336 for code/branches/weaponFS15
- Timestamp:
- Mar 26, 2015, 4:14:43 PM (10 years ago)
- 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 83 83 class Rocket; 84 84 class SimpleRocket; 85 class GravityBomb; 85 86 86 87 // weaponmodes -
code/branches/weaponFS15/src/modules/weapons/projectiles/CMakeLists.txt
r8855 r10336 7 7 Rocket.cc 8 8 SimpleRocket.cc 9 GravityBomb.cc 9 10 ) -
code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h
r10326 r10336 44 44 #include "graphics/ParticleSpawner.h" 45 45 #include "interfaces/RadarViewable.h" 46 46 #include "objects/ForceField.h" 47 47 #include "BasicProjectile.h" 48 #include "worldentities/MovableEntity.h" 49 #include "core/CoreIncludes.h" 48 50 49 51 namespace orxonox … … 52 54 class ConeCollisionShape; 53 55 54 class _WeaponsExport GravityBomb : public BasicProjectile , public RadarViewable, public MovableEntity56 class _WeaponsExport GravityBomb : public BasicProjectile , public MovableEntity, public RadarViewable 55 57 { 56 58 public: 57 59 GravityBomb(Context* context); 60 virtual ~GravityBomb(); 61 virtual void tick(float dt); 62 63 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint); 58 64 59 65 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_; 60 71 float lifetime_; 72 float forceSphereRadius_; 73 float forceStrength_; 61 74 62 } 75 76 }; 63 77 } 64 78 #endif /* GravityBOMB_H_ */
Note: See TracChangeset
for help on using the changeset viewer.