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/eathena/playerhandler.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/net/eathena/playerhandler.h') diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 87bd2a7c6..ec8fcd5cb 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -40,26 +40,27 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler A_DELETE_COPY(PlayerHandler) - void handleMessage(Net::MessageIn &msg); + void handleMessage(Net::MessageIn &msg) override; - void attack(int id, bool keep); - void stopAttack(); - void emote(uint8_t emoteId); + void attack(const int id, const bool keep) const override; + void stopAttack() const override; + void emote(const uint8_t emoteId) const override; - void increaseAttribute(int attr); - void increaseSkill(unsigned short skillId); + void increaseAttribute(const int attr) const override; + void increaseSkill(const unsigned short skillId) const override; - void pickUp(const FloorItem *floorItem); - void setDirection(unsigned char direction); - void setDestination(int x, int y, int direction); - void changeAction(Being::Action action); - void updateStatus(uint8_t status); + void pickUp(const FloorItem *const floorItem) const override; + void setDirection(const unsigned char direction) const override; + void setDestination(const int x, const int y, + const int direction) const override; + void changeAction(const Being::Action action) const override; + void updateStatus(const uint8_t status) const override; - void processPlayerShortcuts(Net::MessageIn &msg); - void processPlayerShowEquip(Net::MessageIn &msg); + void processPlayerShortcuts(Net::MessageIn &msg) const; + void processPlayerShowEquip(Net::MessageIn &msg) const; - void requestOnlineList(); - void respawn(); + void requestOnlineList() const override; + void respawn() const override; }; } // namespace EAthena -- cgit v1.2.3-60-g2f50