summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index 3f75943e..69a68efe 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -254,6 +254,13 @@ void Particle::moveTo(float x, float y)
moveTo(Vector(x, y, mPos.z));
}
+Particle *Particle::createChild()
+{
+ Particle *newParticle = new Particle(mMap);
+ mChildParticles.push_back(newParticle);
+ return newParticle;
+}
+
Particle *Particle::addEffect(const std::string &particleEffectFile,
int pixelX, int pixelY, int rotation)
{