summaryrefslogtreecommitdiff
path: root/src/net/eathena/searchstorehandler.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/searchstorehandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/searchstorehandler.cpp')
-rw-r--r--src/net/eathena/searchstorehandler.cpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
index e4225b6ee..8a170cb5d 100644
--- a/src/net/eathena/searchstorehandler.cpp
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -36,46 +36,11 @@ extern Net::SearchStoreHandler *searchStoreHandler;
namespace EAthena
{
-SearchStoreHandler::SearchStoreHandler() :
- MessageHandler()
+SearchStoreHandler::SearchStoreHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_SEARCHSTORE_SEARCH_ACK,
- SMSG_SEARCHSTORE_SEARCH_FAILED,
- SMSG_SEARCHSTORE_OPEN,
- SMSG_SEARCHSTORE_CLICK_ACK,
- 0
- };
- handledMessages = _messages;
searchStoreHandler = this;
}
-void SearchStoreHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_SEARCHSTORE_SEARCH_ACK:
- SearchStoreRecv::processSearchAck(msg);
- break;
-
- case SMSG_SEARCHSTORE_SEARCH_FAILED:
- SearchStoreRecv::processSearchFailed(msg);
- break;
-
- case SMSG_SEARCHSTORE_OPEN:
- SearchStoreRecv::processSearchOpen(msg);
- break;
-
- case SMSG_SEARCHSTORE_CLICK_ACK:
- SearchStoreRecv::processSearchClickAck(msg);
- break;
-
- default:
- break;
- }
-}
-
void SearchStoreHandler::search(const StoreSearchTypeT type,
const int minPrice,
const int maxPrice,