diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 18:53:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 18:53:53 +0300 |
commit | 919d790980be710ec991af3654521225e97b5f79 (patch) | |
tree | 0d09d6d430502488fde4bd0841d8d5767af7d4f4 /src/net/playerhandler.h | |
parent | a3635c94a9f1074736f243b0f7de7ab1c8aa14d0 (diff) | |
download | plus-919d790980be710ec991af3654521225e97b5f79.tar.gz plus-919d790980be710ec991af3654521225e97b5f79.tar.bz2 plus-919d790980be710ec991af3654521225e97b5f79.tar.xz plus-919d790980be710ec991af3654521225e97b5f79.zip |
improve playerhandler class.
Diffstat (limited to 'src/net/playerhandler.h')
-rw-r--r-- | src/net/playerhandler.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index d0a9fb512..a536bbf18 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -36,31 +36,33 @@ class PlayerHandler virtual ~PlayerHandler() { } - virtual void attack(int id, bool keep) = 0; + virtual void attack(const int id, const bool keep) const = 0; - virtual void stopAttack() = 0; + virtual void stopAttack() const = 0; - virtual void emote(uint8_t emoteId) = 0; + virtual void emote(const uint8_t emoteId) const = 0; - virtual void increaseAttribute(int attr) = 0; + virtual void increaseAttribute(const int attr) const = 0; - virtual void decreaseAttribute(int attr) = 0; + virtual void decreaseAttribute(const int attr) const = 0; - virtual void increaseSkill(unsigned short skillId) = 0; + virtual void increaseSkill(const unsigned short skillId) const = 0; - virtual void pickUp(const FloorItem *floorItem) = 0; + virtual void pickUp(const FloorItem *const floorItem) const = 0; - virtual void setDirection(unsigned char direction) = 0; + virtual void setDirection(const unsigned char direction) const = 0; - virtual void setDestination(int x, int y, int direction) = 0; + virtual void setDestination(const int x, const int y, + const int direction) const = 0; - virtual void changeAction(Being::Action action) = 0; + virtual void changeAction(const Being::Action action) const = 0; - virtual void respawn() = 0; + virtual void respawn() const = 0; - virtual void ignorePlayer(const std::string &player, bool ignore) = 0; + virtual void ignorePlayer(const std::string &player, + const bool ignore) const = 0; - virtual void ignoreAll(bool ignore) = 0; + virtual void ignoreAll(const bool ignore) const = 0; virtual bool canUseMagic() const = 0; @@ -72,9 +74,9 @@ class PlayerHandler virtual Vector getDefaultWalkSpeed() const A_WARN_UNUSED = 0; - virtual void requestOnlineList() = 0; + virtual void requestOnlineList() const = 0; - virtual void updateStatus(uint8_t status) = 0; + virtual void updateStatus(const uint8_t status) const = 0; }; } // namespace Net |