diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:42:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:52:53 +0300 |
commit | cdc8f4ad535d39adb89f238c6f9b2c68d71f6151 (patch) | |
tree | ec2ecc06c9cfb870b3a11aaec5326bf987593494 /src/statuseffect.h | |
parent | 4aa184df5a208c51cb0141ae6a609c60294d8323 (diff) | |
download | mv-cdc8f4ad535d39adb89f238c6f9b2c68d71f6151.tar.gz mv-cdc8f4ad535d39adb89f238c6f9b2c68d71f6151.tar.bz2 mv-cdc8f4ad535d39adb89f238c6f9b2c68d71f6151.tar.xz mv-cdc8f4ad535d39adb89f238c6f9b2c68d71f6151.zip |
Add support for permanent particle effect.s20160712
Attribute name "particle".
This effect cant be played at start, if existing "start-particle"
but will be played if effect continues.
Diffstat (limited to 'src/statuseffect.h')
-rw-r--r-- | src/statuseffect.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/statuseffect.h b/src/statuseffect.h index 7ef6f212f..83a721852 100644 --- a/src/statuseffect.h +++ b/src/statuseffect.h @@ -58,6 +58,12 @@ class StatusEffect final Particle *getStartParticle() const A_WARN_UNUSED; /** + * Creates the particle effect associated with this status effect, if + * possible. + */ + Particle *getParticle() const A_WARN_UNUSED; + + /** * Retrieves the status icon for this effect, if applicable */ AnimatedSprite *getIcon() const A_WARN_UNUSED; @@ -70,6 +76,7 @@ class StatusEffect final std::string mMessage; std::string mSFXEffect; std::string mStartParticleEffect; + std::string mParticleEffect; std::string mIcon; std::string mAction; std::string mName; |