summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index fb612f19..000dec55 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -206,6 +206,13 @@ size_t AnimatedSprite::getFrameCount() const
return 0;
}
+int AnimatedSprite::getDuration() const
+{
+ if (mAnimation)
+ return mAnimation->getDuration();
+ return 0;
+}
+
int AnimatedSprite::getWidth() const
{
if (mFrame)