From 919d790980be710ec991af3654521225e97b5f79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Apr 2013 18:53:53 +0300 Subject: improve playerhandler class. --- src/net/ea/playerhandler.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'src/net/ea/playerhandler.h') diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h index 016b29782..57ff3b6af 100644 --- a/src/net/ea/playerhandler.h +++ b/src/net/ea/playerhandler.h @@ -37,39 +37,40 @@ class PlayerHandler : public Net::PlayerHandler A_DELETE_COPY(PlayerHandler) - void decreaseAttribute(int attr); + void decreaseAttribute(const int attr) const override; - void ignorePlayer(const std::string &player, bool ignore); + void ignorePlayer(const std::string &player, + const bool ignore) const override; - void ignoreAll(bool ignore); + void ignoreAll(const bool ignore) const override; - bool canUseMagic() const; + bool canUseMagic() const override; - bool canCorrectAttributes() const; + bool canCorrectAttributes() const override; - Vector getDefaultWalkSpeed() const A_WARN_UNUSED; + Vector getDefaultWalkSpeed() const override A_WARN_UNUSED; - int getJobLocation() const A_WARN_UNUSED; + int getJobLocation() const override A_WARN_UNUSED; - int getAttackLocation() const A_WARN_UNUSED; + int getAttackLocation() const override A_WARN_UNUSED; - void processWalkResponse(Net::MessageIn &msg); + void processWalkResponse(Net::MessageIn &msg) const; - void processPlayerWarp(Net::MessageIn &msg); + void processPlayerWarp(Net::MessageIn &msg) const; - void processPlayerStatUpdate1(Net::MessageIn &msg); + void processPlayerStatUpdate1(Net::MessageIn &msg) const; - void processPlayerStatUpdate2(Net::MessageIn &msg); + void processPlayerStatUpdate2(Net::MessageIn &msg) const; - void processPlayerStatUpdate3(Net::MessageIn &msg); + void processPlayerStatUpdate3(Net::MessageIn &msg) const; - void processPlayerStatUpdate4(Net::MessageIn &msg); + void processPlayerStatUpdate4(Net::MessageIn &msg) const; - void processPlayerStatUpdate5(Net::MessageIn &msg); + void processPlayerStatUpdate5(Net::MessageIn &msg) const; - void processPlayerStatUpdate6(Net::MessageIn &msg); + void processPlayerStatUpdate6(Net::MessageIn &msg) const; - void processPlayerArrowMessage(Net::MessageIn &msg); + void processPlayerArrowMessage(Net::MessageIn &msg) const; }; } // namespace Ea -- cgit v1.2.3-70-g09d2