diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index 5720f0a6..71bb6ca5 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -123,3 +123,13 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY) py - 50 + 2 * hairtable[frame][dir][1]); } } + +void +Player::drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY) +{ + int px = mPx + offsetX; + int py = mPy + offsetY; + + graphics->setFont(speechFont); + graphics->drawText(mName, px + 15, py + 30, gcn::Graphics::CENTER); +} |