summaryrefslogtreecommitdiff
path: root/src/net/eathena/tradehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/tradehandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/tradehandler.cpp')
-rw-r--r--src/net/eathena/tradehandler.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index 082b3bf60..d0dfe207f 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -48,69 +48,13 @@ extern Net::TradeHandler *tradeHandler;
namespace EAthena
{
TradeHandler::TradeHandler() :
- MessageHandler(),
Ea::TradeHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_TRADE_REQUEST,
- SMSG_TRADE_RESPONSE,
- SMSG_TRADE_ITEM_ADD,
- SMSG_TRADE_ITEM_ADD_RESPONSE,
- SMSG_TRADE_OK,
- SMSG_TRADE_CANCEL,
- SMSG_TRADE_COMPLETE,
- SMSG_TRADE_UNDO,
- 0
- };
- handledMessages = _messages;
tradeHandler = this;
TradeRecv::mItemIndex = -1;
TradeRecv::mQuantity = 0;
}
-
-void TradeHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_TRADE_REQUEST:
- TradeRecv::processTradeRequest(msg);
- break;
-
- case SMSG_TRADE_RESPONSE:
- TradeRecv::processTradeResponse(msg);
- break;
-
- case SMSG_TRADE_ITEM_ADD:
- TradeRecv::processTradeItemAdd(msg);
- break;
-
- case SMSG_TRADE_ITEM_ADD_RESPONSE:
- TradeRecv::processTradeItemAddResponse(msg);
- break;
-
- case SMSG_TRADE_OK:
- Ea::TradeRecv::processTradeOk(msg);
- break;
-
- case SMSG_TRADE_CANCEL:
- Ea::TradeRecv::processTradeCancel(msg);
- break;
-
- case SMSG_TRADE_COMPLETE:
- Ea::TradeRecv::processTradeComplete(msg);
- break;
-
- case SMSG_TRADE_UNDO:
- TradeRecv::processTradeUndo(msg);
- break;
-
- default:
- break;
- }
-}
-
void TradeHandler::request(const Being *const being) const
{
if (!being)