summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-09 20:41:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-09 20:41:27 +0000
commit4e2ced304a2013808b2481cceb7622848b073e5b (patch)
tree2cc2c6cbc3f6e17842919530d583f91256dc86e1 /src/particle.cpp
parent15014d358424bf5f74a2d9b7afd08692b591a448 (diff)
downloadmana-client-4e2ced304a2013808b2481cceb7622848b073e5b.tar.gz
mana-client-4e2ced304a2013808b2481cceb7622848b073e5b.tar.bz2
mana-client-4e2ced304a2013808b2481cceb7622848b073e5b.tar.xz
mana-client-4e2ced304a2013808b2481cceb7622848b073e5b.zip
Implemented possibility to rotate particle emitters. Implemented interpretation of the attacktype parameter of attack messages and visualize monster attacks other than id 1 with a particle effect. Prepared to get attack particle effects and animation types from the monster database.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index dac8c62e..11d91b47 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -212,7 +212,7 @@ Particle::update()
Particle*
Particle::addEffect(const std::string &particleEffectFile,
- int pixelX, int pixelY)
+ int pixelX, int pixelY, int rotation)
{
Particle *newParticle = NULL;
@@ -294,7 +294,7 @@ Particle::addEffect(const std::string &particleEffectFile,
continue;
ParticleEmitter *newEmitter;
- newEmitter = new ParticleEmitter(emitterNode, newParticle, mMap);
+ newEmitter = new ParticleEmitter(emitterNode, newParticle, mMap, rotation);
newParticle->addEmitter(newEmitter);
}