diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-05-07 16:22:54 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-05-07 16:22:54 +0000 |
commit | 8313edcc163bfecd1c41a7faf55f51379189b92b (patch) | |
tree | ebb6f1db2038b3277aca90efe4061c5b8e1820c4 /src/animatedsprite.cpp | |
parent | 279b74f292a45709afcddeea6667d0096d06fd3f (diff) | |
download | mana-client-8313edcc163bfecd1c41a7faf55f51379189b92b.tar.gz mana-client-8313edcc163bfecd1c41a7faf55f51379189b92b.tar.bz2 mana-client-8313edcc163bfecd1c41a7faf55f51379189b92b.tar.xz mana-client-8313edcc163bfecd1c41a7faf55f51379189b92b.zip |
Fixed positioning of monster names and target circles.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 7260a512..c1e89ff0 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -197,3 +197,27 @@ AnimatedSprite::setDirection(SpriteDirection direction) } } } + +int +AnimatedSprite::getWidth() const +{ + if (mFrame) + { + return mFrame->image->getWidth(); + } + else { + return 0; + } +} + +int +AnimatedSprite::getHeight() const +{ + if (mFrame) + { + return mFrame->image->getHeight(); + } + else { + return 0; + } +} |