summaryrefslogtreecommitdiff
path: root/src/animatedsprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r--src/animatedsprite.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h
index 5a7dbde56..60df2f6e4 100644
--- a/src/animatedsprite.h
+++ b/src/animatedsprite.h
@@ -107,6 +107,23 @@ class AnimatedSprite final : public Sprite
static void setEnableCache(const bool b)
{ mEnableCache = b; }
+#ifdef UNITTESTS
+ SpriteDef *getSprite()
+ { return mSprite; }
+
+ Frame *getFrame()
+ { return mFrame; }
+
+ Animation *getAnimation()
+ { return mAnimation; }
+
+ unsigned int getFrameIndex()
+ { return mFrameIndex; }
+
+ unsigned int getFrameTime()
+ { return mFrameTime; }
+#endif
+
private:
bool updateCurrentAnimation(const unsigned int dt);