diff options
Diffstat (limited to 'src/render/particleejectorscript.h')
-rw-r--r-- | src/render/particleejectorscript.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/render/particleejectorscript.h b/src/render/particleejectorscript.h index 03f7294..e7c135f 100644 --- a/src/render/particleejectorscript.h +++ b/src/render/particleejectorscript.h @@ -20,7 +20,7 @@ public: /** * @brief definition for type of ejector * */ - enum Type { Sprite = 0, Flare = 1, Trail = 2, Flame = 3 }; + enum Type { Sprite = 0, Flare = 1, Trail = 2, Flame = 3 , Streak = 4 }; ParticleEjectorScript(); ParticleEjectorScript(const ParticleEjectorScript & other); @@ -166,6 +166,14 @@ public: return script_speed; } + /** + * @brief acceleration of ejected particles, in gameunits per second squared + * */ + inline const float acceleration() const + { + return script_acceleration; + } + /** * @brief spawn radius * radius within wich particles are spawn @@ -234,6 +242,14 @@ public: } /** + * @brief set the acceleration of ejected particles, in gameunits per second squared + * */ + inline void set_acceleration(const float acceleration) + { + script_acceleration = acceleration; + } + + /** * @brief set ejector cone, in degrees * */ inline void set_cone(const float cone) @@ -373,7 +389,8 @@ private: /// speed of ejected particles, in gameunits per second float script_speed; - + /// acceleration of ejected particles, in gameunits per second squared + float script_acceleration; /// spawn radius float script_spawn_radius; |