From c01aec243610016c2cd5e4211fee484627bc69ea Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Jun 2012 14:37:49 +0300 Subject: Add npc avatars for evol server. Change protocol version to 6. --- src/gui/widgets/playerbox.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/playerbox.h') diff --git a/src/gui/widgets/playerbox.h b/src/gui/widgets/playerbox.h index d2393ca08..9e5a761b4 100644 --- a/src/gui/widgets/playerbox.h +++ b/src/gui/widgets/playerbox.h @@ -42,7 +42,7 @@ class PlayerBox : public gcn::ScrollArea * Constructor. Takes the initial player character that this box should * display, which defaults to NULL. */ - PlayerBox(const Being *being = nullptr); + PlayerBox(Being *being = nullptr); /** * Destructor. @@ -54,7 +54,7 @@ class PlayerBox : public gcn::ScrollArea * player to NULL causes the box not to draw any * character. */ - void setPlayer(const Being *being) + void setPlayer(Being *being) { mBeing = being; } /** @@ -67,8 +67,11 @@ class PlayerBox : public gcn::ScrollArea */ void drawFrame(gcn::Graphics *graphics); + Being *getBeing() + { return mBeing; } + private: - const Being *mBeing; /**< The character used for display */ + Being *mBeing; /**< The character used for display */ static float mAlpha; static int instances; -- cgit v1.2.3-70-g09d2