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/eathena/bankhandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 48bf2f425..94535474c 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -31,41 +31,11 @@ extern Net::BankHandler *bankHandler; namespace EAthena { -BankHandler::BankHandler() : - MessageHandler() +BankHandler::BankHandler() { - static const uint16_t _messages[] = - { - SMSG_BANK_STATUS, - SMSG_BANK_DEPOSIT, - SMSG_BANK_WITHDRAW, - 0 - }; - handledMessages = _messages; bankHandler = this; } -void BankHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_BANK_STATUS: - BankRecv::processBankStatus(msg); - break; - - case SMSG_BANK_DEPOSIT: - BankRecv::processBankDeposit(msg); - break; - - case SMSG_BANK_WITHDRAW: - BankRecv::processBankWithdraw(msg); - break; - - default: - break; - } -} - void BankHandler::deposit(const int money) const { createOutPacket(CMSG_BANK_DEPOSIT); |