diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-05 00:21:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-05 01:04:15 +0300 |
commit | a498132aa32be5fdf8d4227a7332016fc90ed87d (patch) | |
tree | 2a25422158248717df594e7d5e6058303b06cbcb /src/animatedsprite.h | |
parent | faeaa157b1abada82243b8dc508201aa17db1df2 (diff) | |
download | plus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.gz plus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.bz2 plus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.xz plus-a498132aa32be5fdf8d4227a7332016fc90ed87d.zip |
add animation effect to being.
can be used for now from effects.xml with attribute "sprite".
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r-- | src/animatedsprite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h index 054fcdb68..2d8a55f26 100644 --- a/src/animatedsprite.h +++ b/src/animatedsprite.h @@ -101,6 +101,9 @@ class AnimatedSprite final : public Sprite void setSprite(SpriteDef *const sprite) { mSprite = sprite; } + bool isTerminated() const + { return mTerminated; } + static void setEnableCache(const bool b) { mEnableCache = b; } @@ -122,6 +125,7 @@ class AnimatedSprite final : public Sprite unsigned mNumber; unsigned mNumber1; AnimationDelayLoad *mDelayLoad; + bool mTerminated; static bool mEnableCache; }; |