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 9f4e46bd..fb612f19 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -222,6 +222,16 @@ int AnimatedSprite::getHeight() const return 0; } +int AnimatedSprite::getOffsetX() const +{ + return mFrame ? mFrame->offsetX : 0; +} + +int AnimatedSprite::getOffsetY() const +{ + return mFrame ? mFrame->offsetY : 0; +} + const Image* AnimatedSprite::getImage() const { return mFrame ? mFrame->image : 0; |