summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-30 21:38:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-30 21:55:00 +0300
commit78e438b7043eff243a21833d4709ef432eb7a818 (patch)
treecbaace2b8a39c078115cd48c803363f7a274ee51 /src/being/compoundsprite.h
parent88efa77af94256992ba2c05f4d7b5b5a9d01d6e9 (diff)
downloadmv-78e438b7043eff243a21833d4709ef432eb7a818.tar.gz
mv-78e438b7043eff243a21833d4709ef432eb7a818.tar.bz2
mv-78e438b7043eff243a21833d4709ef432eb7a818.tar.xz
mv-78e438b7043eff243a21833d4709ef432eb7a818.zip
Fix animation time for new animated sprites.
Diffstat (limited to 'src/being/compoundsprite.h')
-rw-r--r--src/being/compoundsprite.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h
index 4a7ed6fb0..babf6fc60 100644
--- a/src/being/compoundsprite.h
+++ b/src/being/compoundsprite.h
@@ -119,6 +119,12 @@ class CompoundSprite notfinal : public Sprite
static void setEnableDelay(bool b)
{ mEnableDelay = b; }
+ int getLastTime() const A_WARN_UNUSED
+ { return mLastTime; }
+
+ int getStartTime() const A_WARN_UNUSED
+ { return mStartTime; }
+
private:
void redraw() const;
@@ -137,6 +143,8 @@ class CompoundSprite notfinal : public Sprite
mutable int mOffsetX;
mutable int mOffsetY;
+ int mStartTime;
+ int mLastTime;
std::vector<Sprite*> mSprites;
#ifndef USE_SDL2
mutable int mNextRedrawTime;