summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-02-05 21:28:38 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-02-05 21:28:38 +0000
commit5e1658aade25018073cc432fbc55c7857441039b (patch)
tree855ab86c0c1a02dd3750751f4b8f0db3dbe71010 /src/being.cpp
parentbb16416fdc756e1952bc975be4a2fee6c584c38f (diff)
downloadmana-5e1658aade25018073cc432fbc55c7857441039b.tar.gz
mana-5e1658aade25018073cc432fbc55c7857441039b.tar.bz2
mana-5e1658aade25018073cc432fbc55c7857441039b.tar.xz
mana-5e1658aade25018073cc432fbc55c7857441039b.zip
Made the nickname and emotions displayed above every layers. Made the delete and ok buttons be disabled once the character is selected at login.
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);
- }
-}