diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 3e4104a9..9ddc001c 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -197,6 +197,16 @@ bool AnimatedSprite::setDirection(SpriteDirection direction) return false; } +size_t AnimatedSprite::getCurrentFrame() const +{ + return mFrameIndex; +} + +size_t AnimatedSprite::getFrameCount() const +{ + return mAnimation->getLength(); +} + int AnimatedSprite::getWidth() const { if (mFrame) |