summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:01 +0300
commit3f76d07b673de76d7c4e434bd5a214f3480927cb (patch)
treee44953d0e1ba69146709b92d619f5f1970b20d36 /src/being/localplayer.h
parent7f9d948a34c0afeb2fbf3e663d058048248b622f (diff)
downloadManaVerse-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.gz
ManaVerse-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.bz2
ManaVerse-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.xz
ManaVerse-3f76d07b673de76d7c4e434bd5a214f3480927cb.zip
Add missing const and static into being classes.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 88a6f6754..c8fa5a32a 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -297,7 +297,7 @@ class LocalPlayer final : public Being,
void moveToHome();
- void debugMsg(const std::string &str) const;
+ static void debugMsg(const std::string &str);
bool isReachable(Being *const being,
const int maxCost = 0) A_WARN_UNUSED;
@@ -331,7 +331,7 @@ class LocalPlayer final : public Being,
void afkRespond(ChatTab *const tab, const std::string &nick);
- void setAfkMessage(std::string message);
+ static void setAfkMessage(std::string message);
bool navigateTo(const int x, const int y);
@@ -522,11 +522,12 @@ class LocalPlayer final : public Being,
static void tryMagic(const std::string &spell, const int baseMagic,
const int schoolMagic, const int mana);
- const char *getVarItem(const char *const *const arr,
- const unsigned index,
- const unsigned sz) const A_WARN_UNUSED;
+ static const char *getVarItem(const char *const *const arr,
+ const unsigned index,
+ const unsigned sz) A_WARN_UNUSED;
- void changeMode(unsigned *restrict const var, const unsigned limit,
+ void changeMode(unsigned *restrict const var,
+ const unsigned limit,
const char *restrict const conf,
std::string (LocalPlayer::*const func)(),
const unsigned def = 0,