diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 7 |
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) |