summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp39
1 files changed, 26 insertions, 13 deletions
diff --git a/src/being.cpp b/src/being.cpp
index aeb90860..b417fc34 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -218,6 +218,32 @@ Being::logic()
}
void
+Being::drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
+{
+ int px = mPx + offsetX;
+ int py = mPy + offsetY;
+
+ // Draw player name
+ if (getType() != LOCALPLAYER) {
+ graphics->setFont(speechFont);
+ graphics->drawText(mName, px + 15, py + 30, gcn::Graphics::CENTER);
+ }
+}
+
+void
+Being::drawEmotion(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
+{
+ int px = mPx + offsetX;
+ int py = mPy + offsetY;
+
+ if (emotion)
+ {
+ graphics->drawImage(emotionset->spriteset[emotion - 1],
+ px + 3, py - 60);
+ }
+}
+
+void
Being::drawSpeech(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
{
int px = mPx + offsetX;
@@ -343,16 +369,3 @@ Being::getYOffset() const
return offset;
}
-
-void
-Being::draw(Graphics *graphics, int offsetX, int offsetY)
-{
- int px = mPx + offsetX;
- int py = mPy + offsetY;
-
- if (emotion)
- {
- graphics->drawImage(emotionset->spriteset[emotion - 1],
- px + 3, py - 60);
- }
-}