Last change
on this file since 10426 was
10409,
checked in by meggiman, 10 years ago
|
Started implementing Particle effect. Force Field explodes at end of life.
|
File size:
948 bytes
|
Rev | Line | |
---|
[10341] | 1 | /* |
---|
| 2 | * GravityBombField.h |
---|
| 3 | * |
---|
| 4 | * Created on: Apr 2, 2015 |
---|
| 5 | * Author: meggiman |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #ifndef GRAVITYBOMBFIELD_H_ |
---|
| 9 | #define GRAVITYBOMBFIELD_H_ |
---|
| 10 | |
---|
| 11 | #include "graphics/ParticleSpawner.h" |
---|
| 12 | #include "interfaces/RadarViewable.h" |
---|
| 13 | #include "objects/ForceField.h" |
---|
| 14 | #include "BasicProjectile.h" |
---|
| 15 | #include "worldentities/MovableEntity.h" |
---|
| 16 | #include "core/CoreIncludes.h" |
---|
| 17 | #include "GravityBomb.h" |
---|
[10409] | 18 | #include "graphics/ParticleSpawner.h" |
---|
[10341] | 19 | |
---|
[10409] | 20 | |
---|
[10341] | 21 | namespace orxonox { |
---|
[10409] | 22 | class GravityBombField: public ForceField, public RadarViewable { |
---|
[10341] | 23 | public: |
---|
| 24 | GravityBombField(Context* context); |
---|
| 25 | virtual ~GravityBombField(); |
---|
| 26 | virtual void tick(float dt); |
---|
| 27 | virtual void destroy(); |
---|
| 28 | private: |
---|
| 29 | static const float FORCE_FIELD_LIFETIME; |
---|
| 30 | static const float FORCE_SPHERE_START_RADIUS; |
---|
| 31 | static const float FORCE_SPHERE_START_STRENGTH; |
---|
| 32 | |
---|
| 33 | float forceSphereRadius_; |
---|
| 34 | float forceStrength_; |
---|
| 35 | float lifetime_; |
---|
[10409] | 36 | bool fieldExploded_; |
---|
| 37 | ParticleEmitter * particleSphere_; |
---|
[10341] | 38 | |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | } |
---|
| 42 | #endif /* GRAVITYBOMBFIELD_H_ */ |
---|
| 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.