summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-05-07 16:22:54 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-05-07 16:22:54 +0000
commit8313edcc163bfecd1c41a7faf55f51379189b92b (patch)
treeebb6f1db2038b3277aca90efe4061c5b8e1820c4 /src/being.cpp
parent279b74f292a45709afcddeea6667d0096d06fd3f (diff)
downloadmana-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/being.cpp')
-rw-r--r--src/being.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index db7751bf..8ddd1e89 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -511,3 +511,29 @@ Being::getOffset(char pos, char neg) const
return offset;
}
+
+
+int
+Being::getWidth() const
+{
+ if (mSprites[BASE_SPRITE])
+ {
+ return mSprites[BASE_SPRITE]->getWidth();
+ }
+ else {
+ return 0;
+ }
+};
+
+
+int
+Being::getHeight() const
+{
+ if (mSprites[BASE_SPRITE])
+ {
+ return mSprites[BASE_SPRITE]->getHeight();
+ }
+ else {
+ return 0;
+ }
+};