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/pethandler.cpp | |
parent | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff) | |
download | manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2 manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip |
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index ea6a0602a..729c0704d 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -35,63 +35,11 @@ extern Net::PetHandler *petHandler; namespace EAthena { -PetHandler::PetHandler() : - MessageHandler() +PetHandler::PetHandler() { - static const uint16_t _messages[] = - { - SMSG_PET_MESSAGE, - SMSG_PET_ROULETTE, - SMSG_PET_EGGS_LIST, - SMSG_PET_DATA, - SMSG_PET_STATUS, - SMSG_PET_FOOD, - SMSG_PET_CATCH_PROCESS, - 0 - }; - handledMessages = _messages; petHandler = this; } -void PetHandler::handleMessage(Net::MessageIn &msg) -{ - BLOCK_START("PetHandler::handleMessage") - switch (msg.getId()) - { - case SMSG_PET_MESSAGE: - PetRecv::processPetMessage(msg); - break; - - case SMSG_PET_ROULETTE: - PetRecv::processPetRoulette(msg); - break; - - case SMSG_PET_EGGS_LIST: - PetRecv::processEggsList(msg); - break; - - case SMSG_PET_DATA: - PetRecv::processPetData(msg); - break; - - case SMSG_PET_STATUS: - PetRecv::processPetStatus(msg); - break; - - case SMSG_PET_FOOD: - PetRecv::processPetFood(msg); - break; - - case SMSG_PET_CATCH_PROCESS: - PetRecv::processPetCatchProcess(msg); - break; - - default: - break; - } - BLOCK_END("PetHandler::handleMessage") -} - void PetHandler::move(const int petId A_UNUSED, const int x, const int y) const { |