summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionhandler.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/auctionhandler.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/auctionhandler.cpp')
-rw-r--r--src/net/eathena/auctionhandler.cpp42
1 files changed, 1 insertions, 41 deletions
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);