diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 334a2598..a5328182 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -38,6 +38,12 @@ class Item; class Map; class OkDialog; +class AwayListener : public gcn::ActionListener +{ + public: + void action(const gcn::ActionEvent &event); +}; + /** * The local player character. */ @@ -178,6 +184,15 @@ class LocalPlayer : public Being bool isPathSetByMouse() const { return mPathSetByMouse; } + void changeAwayMode(); + + bool getAwayMode() + { return mAwayMode; } + + void setAway(const std::string &message); + + void afkRespond(ChatTab *tab, const std::string &nick); + void addMessageToQueue(const std::string &message, int color = UserPalette::EXP_INFO); @@ -227,6 +242,11 @@ class LocalPlayer : public Being int mMessageTime; bool mShowIp; + + AwayListener *mAwayListener; + OkDialog *mAwayDialog; + int mAfkTime; + bool mAwayMode; }; extern LocalPlayer *player_node; |