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/npcdialog.h | |
parent | 8321043b76660235a5ebbfbb8f43504f43c1af8b (diff) | |
download | manaverse-c01aec243610016c2cd5e4211fee484627bc69ea.tar.gz manaverse-c01aec243610016c2cd5e4211fee484627bc69ea.tar.bz2 manaverse-c01aec243610016c2cd5e4211fee484627bc69ea.tar.xz manaverse-c01aec243610016c2cd5e4211fee484627bc69ea.zip |
Add npc avatars for evol server.
Change protocol version to 6.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r-- | src/gui/npcdialog.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index f56af664e..68ee17e33 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -34,10 +34,12 @@ #include <list> +class Being; class BrowserBox; class ItemLinkHandler; class IntTextField; class ListBox; +class PlayerBox; class TextBox; class TextField; class Button; @@ -184,12 +186,28 @@ class NpcDialog : public Window, public gcn::ActionListener, void refocus(); + void showAvatar(int avatarId); + + void setAvatarDirection(uint8_t direction); + + void setAvatarAction(int actionId); + + void logic(); + private: typedef std::list<NpcDialog*> DialogList; static DialogList instances; void buildLayout(); + void placeNormalControls(); + + void placeMenuControls(); + + void placeTextInputControls(); + + void placeIntInputControls(); + int mNpcId; bool mLogInteraction; @@ -245,6 +263,9 @@ class NpcDialog : public Window, public gcn::ActionListener, int mCameraMode; int mCameraX; int mCameraY; + PlayerBox *mPlayerBox; + Being *mAvatarBeing; + bool mShowAvatar; }; #endif // NPCDIALOG_H |