summaryrefslogtreecommitdiff
path: root/src/animatedsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-05 00:21:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-05 01:04:15 +0300
commita498132aa32be5fdf8d4227a7332016fc90ed87d (patch)
tree2a25422158248717df594e7d5e6058303b06cbcb /src/animatedsprite.h
parentfaeaa157b1abada82243b8dc508201aa17db1df2 (diff)
downloadplus-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.h4
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;
};