diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 26 |
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; + } +}; |