From 84d2bab38202cd52b5eb0a37c12204ab6f607915 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Sep 2015 20:58:41 +0300 Subject: Remove MessageHandler class --- src/net/eathena/auctionhandler.cpp | 42 +------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'src/net/eathena/auctionhandler.cpp') diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index e84a29cec..154ccaa35 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -35,51 +35,11 @@ extern Net::AuctionHandler *auctionHandler; namespace EAthena { -AuctionHandler::AuctionHandler() : - MessageHandler() +AuctionHandler::AuctionHandler() { - static const uint16_t _messages[] = - { - SMSG_AUCTION_OPEN_WINDOW, - SMSG_AUCTION_RESULTS, - SMSG_AUCTION_SET_ITEM, - SMSG_AUCTION_MESSAGE, - SMSG_AUCTION_CLOSE, - 0 - }; - handledMessages = _messages; auctionHandler = this; } -void AuctionHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_AUCTION_OPEN_WINDOW: - AuctionRecv::processOpenWindow(msg); - break; - - case SMSG_AUCTION_RESULTS: - AuctionRecv::processAuctionResults(msg); - break; - - case SMSG_AUCTION_SET_ITEM: - AuctionRecv::processAuctionSetItem(msg); - break; - - case SMSG_AUCTION_MESSAGE: - AuctionRecv::processAuctionMessage(msg); - break; - - case SMSG_AUCTION_CLOSE: - AuctionRecv::processAuctionClose(msg); - break; - - default: - break; - } -} - void AuctionHandler::cancelReg() const { createOutPacket(CMSG_AUCTION_CANCEL_REG); -- cgit v1.2.3-60-g2f50