diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-22 21:10:29 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-22 21:10:29 +0000 |
commit | be1c0d9dd0fe27079f7edd89c55f5eeeff0ae00c (patch) | |
tree | 44468b31c892c08c7f30b4d7f6c7c220c5cb65fd /src/render/particleejectorscript.h | |
parent | b887a9f9de76df999a40f2ae8994984723ac46bf (diff) |
Implemented Flare particles.
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; |