summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
commitbebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch)
tree4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/being/localplayer.h
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadmv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 3a7f4605d..1b97e3a18 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -116,7 +116,7 @@ class LocalPlayer final : public Being,
void setGMLevel(const int level);
- int getGMLevel() const A_WARN_UNUSED
+ int getGMLevel() const noexcept2 A_WARN_UNUSED
{ return mGMLevel; }
void stopAttack(const bool keepAttack = false);
@@ -150,7 +150,7 @@ class LocalPlayer final : public Being,
/**
* Gets the walking direction
*/
- unsigned char getWalkingDir() const A_WARN_UNUSED
+ unsigned char getWalkingDir() const noexcept2 A_WARN_UNUSED
{ return mWalkingDir; }
/**
@@ -192,13 +192,13 @@ class LocalPlayer final : public Being,
{ mPathSetByMouse = true; }
/** Tells if the path has been set by mouse. */
- bool isPathSetByMouse() const A_WARN_UNUSED
+ bool isPathSetByMouse() const noexcept2 A_WARN_UNUSED
{ return mPathSetByMouse; }
- unsigned int getMoveState() const A_WARN_UNUSED
+ unsigned int getMoveState() const noexcept2 A_WARN_UNUSED
{ return mMoveState; }
- void setMoveState(const unsigned int n)
+ void setMoveState(const unsigned int n) noexcept2
{ mMoveState = n; }
std::string getPingTime() const A_WARN_UNUSED;
@@ -240,7 +240,7 @@ class LocalPlayer final : public Being,
void setHalfAway(const bool n)
{ mInactive = n; }
- bool getHalfAway() const A_WARN_UNUSED
+ bool getHalfAway() const noexcept2 A_WARN_UNUSED
{ return mInactive; }
void afkRespond(ChatTab *const tab, const std::string &nick);
@@ -272,7 +272,7 @@ class LocalPlayer final : public Being,
void setRealPos(const int x, const int y);
- bool isServerBuggy() const A_WARN_UNUSED
+ bool isServerBuggy() const noexcept2 A_WARN_UNUSED
{ return mIsServerBuggy; }
void fixPos();
@@ -308,15 +308,15 @@ class LocalPlayer final : public Being,
*/
void setNextDest(const int x, const int y);
- int getNextDestX() const A_WARN_UNUSED
+ int getNextDestX() const noexcept2 A_WARN_UNUSED
{ return mNextDestX; }
- int getNextDestY() const A_WARN_UNUSED
+ int getNextDestY() const noexcept2 A_WARN_UNUSED
{ return mNextDestY; }
void respawn();
- const FloorItem *getPickUpTarget() const A_WARN_UNUSED
+ const FloorItem *getPickUpTarget() const noexcept2 A_WARN_UNUSED
{ return mPickUpTarget; }
void unSetPickUpTarget()
@@ -330,13 +330,13 @@ class LocalPlayer final : public Being,
/**
* Get the playername followed by the current player.
*/
- const std::string &getFollow() const A_WARN_UNUSED
+ const std::string &getFollow() const noexcept2 A_WARN_UNUSED
{ return mPlayerFollowed; }
/**
* Get the playername imitated by the current player.
*/
- const std::string &getImitate() const A_WARN_UNUSED
+ const std::string &getImitate() const noexcept2 A_WARN_UNUSED
{ return mPlayerImitated; }
/**
@@ -350,7 +350,7 @@ class LocalPlayer final : public Being,
* Gets if the engine has to check
* if the Player Name is to be displayed.
*/
- bool getCheckNameSetting() const A_WARN_UNUSED
+ bool getCheckNameSetting() const noexcept2 A_WARN_UNUSED
{ return mUpdateName; }
void fixAttackTarget();
@@ -411,19 +411,19 @@ class LocalPlayer final : public Being,
void updateMusic() const;
- void setAfkTime(const int v)
+ void setAfkTime(const int v) noexcept2
{ mAfkTime = v; }
void setAwayDialog(OkDialog *const dialog)
{ mAwayDialog = dialog; }
- AwayListener *getAwayListener() const A_WARN_UNUSED
+ AwayListener *getAwayListener() const noexcept2 A_WARN_UNUSED
{ return mAwayListener; }
- void setRename(const bool r)
+ void setRename(const bool r) noexcept2
{ mAllowRename = r; }
- bool getRename() const
+ bool getRename() const noexcept2
{ return mAllowRename; }
bool canMove() const;