From 18d8872333e2e433ce7b9e7be71706de37933097 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Mar 2013 00:10:16 +0300 Subject: improve some network handlers classes. --- src/net/tmwa/adminhandler.h | 10 +++++----- src/net/tmwa/beinghandler.h | 6 +++--- src/net/tmwa/buysellhandler.cpp | 2 +- src/net/tmwa/buysellhandler.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 15bb42e88..07f3fbd8e 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -40,15 +40,15 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler A_DELETE_COPY(AdminHandler) - void handleMessage(Net::MessageIn &msg); + void handleMessage(Net::MessageIn &msg) override; - void announce(const std::string &text) const; + void announce(const std::string &text) const override; - void localAnnounce(const std::string &text) const; + void localAnnounce(const std::string &text) const override; - void hide(const bool h) const; + void hide(const bool h) const override; - void kick(const int playerId) const; + void kick(const int playerId) const override; }; } // namespace TmwAthena diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 3d6716a0f..39b868b24 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -40,11 +40,11 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler A_DELETE_COPY(BeingHandler) - virtual void handleMessage(Net::MessageIn &msg); + virtual void handleMessage(Net::MessageIn &msg) override; - virtual void requestNameById(const int id) const; + virtual void requestNameById(const int id) const override; - virtual void undress(Being *const being) const; + virtual void undress(Being *const being) const override; protected: virtual void processBeingChangeLook(Net::MessageIn &msg, diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 6e70fc364..5d173ae17 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -123,7 +123,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) } } -void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) +void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) const { switch (msg.readInt8()) { diff --git a/src/net/tmwa/buysellhandler.h b/src/net/tmwa/buysellhandler.h index 0e8b6b470..aa1092ffc 100644 --- a/src/net/tmwa/buysellhandler.h +++ b/src/net/tmwa/buysellhandler.h @@ -43,7 +43,7 @@ class BuySellHandler final : public MessageHandler, public Ea::BuySellHandler virtual void processNpcBuy(Net::MessageIn &msg); - virtual void processNpcSellResponse(Net::MessageIn &msg); + virtual void processNpcSellResponse(Net::MessageIn &msg) const; }; } // namespace TmwAthena -- cgit v1.2.3-60-g2f50