Last change
on this file since 10422 was
10409,
checked in by meggiman, 10 years ago
|
Started implementing Particle effect. Force Field explodes at end of life.
|
File size:
948 bytes
|
Line | |
---|
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" |
---|
18 | #include "graphics/ParticleSpawner.h" |
---|
19 | |
---|
20 | |
---|
21 | namespace orxonox { |
---|
22 | class GravityBombField: public ForceField, public RadarViewable { |
---|
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_; |
---|
36 | bool fieldExploded_; |
---|
37 | ParticleEmitter * particleSphere_; |
---|
38 | |
---|
39 | }; |
---|
40 | |
---|
41 | } |
---|
42 | #endif /* GRAVITYBOMBFIELD_H_ */ |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.