From 6336dabcb33ca6b4d417b352fa0b12651b6f4c57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Jul 2014 00:39:12 +0300 Subject: move "change away type" option into gamemodifiers. --- src/being/localplayer.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/being/localplayer.h') diff --git a/src/being/localplayer.h b/src/being/localplayer.h index cf604a1ca..3aabda22d 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -232,15 +232,10 @@ class LocalPlayer final : public Being, void pingResponse(); - void changeAwayMode(); - void setAway(const std::string &message); void setPseudoAway(const std::string &message); - bool getAway() const A_WARN_UNUSED - { return mAwayMode; } - bool getPseudoAway() const A_WARN_UNUSED { return mPseudoAwayMode; } @@ -392,8 +387,6 @@ class LocalPlayer final : public Being, void setTestParticle(const std::string &fileName, const bool updateHash = true); - std::string getAwayModeString(); - static std::string getCameraModeString(); int getLastAttackX() const override final @@ -412,6 +405,15 @@ class LocalPlayer final : public Being, void updateMusic(); + void setAfkTime(const int v) + { mAfkTime = v; } + + void setAwayDialog(OkDialog *const dialog) + { mAwayDialog = dialog; } + + AwayListener *getAwayListener() const A_WARN_UNUSED + { return mAwayListener; } + protected: void updateCoords() override final; @@ -534,7 +536,6 @@ class LocalPlayer final : public Being, // Tells if the path was set using mouse bool mPathSetByMouse; bool mWaitPing; - bool mAwayMode; bool mPseudoAwayMode; bool mShowNavigePath; }; -- cgit v1.2.3-60-g2f50