summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
commit7593d6c71e2331c3e43c732db60ad03ee4d5385d (patch)
tree3ad242a957b6a500319d7bdae15149c553521ee4 /src/being.cpp
parent81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (diff)
downloadmana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.gz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.bz2
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.xz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.zip
Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index fa28a61b..504c5ab4 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -218,7 +218,7 @@ void Being::draw(Graphics *graphics, int offsetX, int offsetY)
int px = mPx + offsetX;
int py = mPy + offsetY;
- graphics->drawImage(mSpriteset->spriteset[mSpriteFrame], px, py);
+ graphics->drawImage(mSpriteset->get(mSpriteFrame), px, py);
}
void
@@ -229,7 +229,7 @@ Being::drawEmotion(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
if (emotion)
{
- graphics->drawImage(emotionset->spriteset[emotion - 1],
+ graphics->drawImage(emotionset->get(emotion - 1),
px + 3, py - 60);
}
}