diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-30 14:37:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-01 17:51:01 +0300 |
commit | c01aec243610016c2cd5e4211fee484627bc69ea (patch) | |
tree | 46a0b704701a9c1229fafa5e7ed7117002fc1579 /src/gui/widgets | |
parent | 8321043b76660235a5ebbfbb8f43504f43c1af8b (diff) | |
download | plus-c01aec243610016c2cd5e4211fee484627bc69ea.tar.gz plus-c01aec243610016c2cd5e4211fee484627bc69ea.tar.bz2 plus-c01aec243610016c2cd5e4211fee484627bc69ea.tar.xz plus-c01aec243610016c2cd5e4211fee484627bc69ea.zip |
Add npc avatars for evol server.
Change protocol version to 6.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/playerbox.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/playerbox.h | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp index 5e2412d3b..90a9c9409 100644 --- a/src/gui/widgets/playerbox.cpp +++ b/src/gui/widgets/playerbox.cpp @@ -40,7 +40,7 @@ int PlayerBox::instances = 0; float PlayerBox::mAlpha = 1.0; ImageRect PlayerBox::background; -PlayerBox::PlayerBox(const Being *being): +PlayerBox::PlayerBox(Being *being): mBeing(being) { setFrameSize(2); 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 <code>NULL</code>. */ - PlayerBox(const Being *being = nullptr); + PlayerBox(Being *being = nullptr); /** * Destructor. @@ -54,7 +54,7 @@ class PlayerBox : public gcn::ScrollArea * player to <code>NULL</code> 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; |