summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-27 00:10:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-27 00:10:16 +0300
commit18d8872333e2e433ce7b9e7be71706de37933097 (patch)
treedea07c5b7dcd29a3105b42b64ce0414e45f36b10 /src/net/tmwa
parent170b469cbcf4adcd82604a6b2efd5a0630ef3fb5 (diff)
downloadplus-18d8872333e2e433ce7b9e7be71706de37933097.tar.gz
plus-18d8872333e2e433ce7b9e7be71706de37933097.tar.bz2
plus-18d8872333e2e433ce7b9e7be71706de37933097.tar.xz
plus-18d8872333e2e433ce7b9e7be71706de37933097.zip
improve some network handlers classes.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/adminhandler.h10
-rw-r--r--src/net/tmwa/beinghandler.h6
-rw-r--r--src/net/tmwa/buysellhandler.cpp2
-rw-r--r--src/net/tmwa/buysellhandler.h2
4 files changed, 10 insertions, 10 deletions
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