summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index 7e89ae0f2..a53f239b2 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -39,6 +39,7 @@ StatusEffect::StatusEffect() :
mMessage(),
mSFXEffect(),
mStartParticleEffect(),
+ mParticleEffect(),
mIcon(),
mAction(),
mName(),
@@ -75,6 +76,14 @@ Particle *StatusEffect::getStartParticle() const
return particleEngine->addEffect(mStartParticleEffect, 0, 0);
}
+Particle *StatusEffect::getParticle() const
+{
+ if (!particleEngine || mParticleEffect.empty())
+ return nullptr;
+ else
+ return particleEngine->addEffect(mParticleEffect, 0, 0);
+}
+
AnimatedSprite *StatusEffect::getIcon() const
{
if (mIcon.empty())