diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 20:58:41 +0300 |
commit | 84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch) | |
tree | 2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/tmwa/buysellhandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r-- | src/net/tmwa/buysellhandler.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 963a40a5f..b2582a595 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -44,54 +44,12 @@ namespace TmwAthena { BuySellHandler::BuySellHandler() : - MessageHandler(), Ea::BuySellHandler() { - static const uint16_t _messages[] = - { - SMSG_NPC_BUY_SELL_CHOICE, - SMSG_NPC_BUY, - SMSG_NPC_SELL, - SMSG_NPC_BUY_RESPONSE, - SMSG_NPC_SELL_RESPONSE, - 0 - }; - handledMessages = _messages; buySellHandler = this; Ea::BuySellRecv::mBuyDialog = nullptr; } -void BuySellHandler::handleMessage(Net::MessageIn &msg) -{ - BLOCK_START("BuySellHandler::handleMessage") - switch (msg.getId()) - { - case SMSG_NPC_BUY_SELL_CHOICE: - Ea::BuySellRecv::processNpcBuySellChoice(msg); - break; - - case SMSG_NPC_BUY: - BuySellRecv::processNpcBuy(msg); - break; - - case SMSG_NPC_SELL: - Ea::BuySellRecv::processNpcSell(msg); - break; - - case SMSG_NPC_BUY_RESPONSE: - Ea::BuySellRecv::processNpcBuyResponse(msg); - break; - - case SMSG_NPC_SELL_RESPONSE: - BuySellRecv::processNpcSellResponse(msg); - break; - - default: - break; - } - BLOCK_END("BuySellHandler::handleMessage") -} - void BuySellHandler::requestSellList(const std::string &nick) const { if (nick.empty() != 0 || !shopWindow) |