From caee40df5da03eb2db6ed8d528f1561ef9bcbd34 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 9 Dec 2008 08:37:38 -0700 Subject: Status particle effects: when looking up block IDs (effect IDs for other players), make sure to initialise if needed Status particle effects: properly delete particles after effect has worn off --- src/statuseffect.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/statuseffect.h') diff --git a/src/statuseffect.h b/src/statuseffect.h index 5d18ac92..c720ed97 100644 --- a/src/statuseffect.h +++ b/src/statuseffect.h @@ -60,6 +60,12 @@ public: */ SpriteAction getAction(); + /** + * Determines whether the particle effect should be restarted when the + * being changes maps + */ + bool particleEffectIsPersistent() const { return mPersistentParticleEffect; } + /** * Retrieves a status effect. @@ -96,6 +102,7 @@ private: std::string mParticleEffect; std::string mIcon; std::string mAction; + bool mPersistentParticleEffect; }; #endif // !defined(STATUS_EFFECT_H) -- cgit v1.2.3-70-g09d2