summaryrefslogtreecommitdiff
path: root/src/particleemitter.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-10-17 17:15:21 +0200
committerPhilipp Sehmisch <mana@crushnet.org>2010-10-17 17:15:21 +0200
commit1b21442b5eb6dcc41a585715d07c73ed3ad59a1b (patch)
treec84f226695e1d7bb7d95fcba7c9e8c30333508da /src/particleemitter.h
parent1f3c056323de16cbe5965e1d65a69eeab73396ce (diff)
downloadmana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.gz
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.bz2
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.xz
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.zip
Added death effects to particle engine.
Every particle can now have a death effect. This is an effect which is created when the particle dies. Which death reasons (timeout, touching floor, touching sky, reaching target or deleted by external call) trigger the effect can also be specified. This is useful for exploding projectiles and many other effects. Reviewed-by: Bertram
Diffstat (limited to 'src/particleemitter.h')
-rw-r--r--src/particleemitter.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/particleemitter.h b/src/particleemitter.h
index cc073c1c..9baaa73c 100644
--- a/src/particleemitter.h
+++ b/src/particleemitter.h
@@ -127,13 +127,19 @@ class ParticleEmitter
int mOutputPauseLeft;
/*
- * Graphical representation of the particle
+ * Graphical representation of the particles
*/
Image *mParticleImage; /**< Particle image, if used */
Animation mParticleAnimation; /**< Filename of particle animation file */
Animation mParticleRotation; /**< Filename of particle rotation file */
ParticleEmitterProp<float> mParticleAlpha; /**< Opacity of the graphical representation of the particles */
+ /*
+ * Death effect of the particles
+ */
+ std::string mDeathEffect;
+ char mDeathEffectConditions;
+
/** List of emitters the spawned particles are equipped with */
std::list<ParticleEmitter> mParticleChildEmitters;
};