- Timestamp:
- May 7, 2015, 5:43:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBombField.h
r10409 r10435 17 17 #include "GravityBomb.h" 18 18 #include "graphics/ParticleSpawner.h" 19 19 #include "tools/ParticleInterface.h" 20 #include <stdlib.h> 21 #include <time.h> 22 #include "graphics/Backlight.h" 20 23 21 24 namespace orxonox { … … 26 29 virtual void tick(float dt); 27 30 virtual void destroy(); 31 32 void setShooter(Pawn* shooter) 33 { this->shooter_ = shooter; } 34 35 Pawn* getShooter() 36 { return this->shooter_; } 37 28 38 private: 29 39 static const float FORCE_FIELD_LIFETIME; 30 40 static const float FORCE_SPHERE_START_RADIUS; 31 41 static const float FORCE_SPHERE_START_STRENGTH; 42 static const float FORCE_FIELD_EXPLOSION_DAMMAGE; 43 static const float EXPLOSION_DURATION; 44 static const float EXPLOSION_RADIUS; 45 static const float PEAK_ANGULAR_VELOCITY; 46 static const float PEAK_EXPLOSION_FORCE; 32 47 33 48 float forceSphereRadius_; 34 49 float forceStrength_; 35 50 float lifetime_; 51 Vector3 rotationVector_; 36 52 bool fieldExploded_; 37 53 ParticleEmitter * particleSphere_; 38 54 ParticleEmitter * explosionCross_; 55 std::vector<Pawn*> victimsAlreadyDamaged_; 56 MovableEntity * bombModel_; 57 Pawn* shooter_; 39 58 }; 40 59
Note: See TracChangeset
for help on using the changeset viewer.