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/inventoryhandler.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/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 215 |
1 files changed, 0 insertions, 215 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 32457ae48..4b24479d2 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -64,55 +64,9 @@ namespace EAthena { InventoryHandler::InventoryHandler() : - MessageHandler(), Ea::InventoryHandler(), mItemIndex(0) { - static const uint16_t _messages[] = - { - SMSG_PLAYER_INVENTORY, - SMSG_PLAYER_INVENTORY_ADD, - SMSG_PLAYER_INVENTORY_REMOVE, - SMSG_PLAYER_INVENTORY_REMOVE2, - SMSG_PLAYER_INVENTORY_USE, - SMSG_ITEM_USE_RESPONSE, - SMSG_PLAYER_STORAGE_ITEMS, - SMSG_PLAYER_STORAGE_EQUIP, - SMSG_PLAYER_STORAGE_STATUS, - SMSG_PLAYER_STORAGE_ADD, - SMSG_PLAYER_STORAGE_REMOVE, - SMSG_PLAYER_STORAGE_CLOSE, - SMSG_PLAYER_EQUIPMENT, - SMSG_PLAYER_EQUIP, - SMSG_PLAYER_UNEQUIP, - SMSG_PLAYER_ARROW_EQUIP, - SMSG_PLAYER_ATTACK_RANGE, - SMSG_PLAYER_USE_CARD, - SMSG_PLAYER_INSERT_CARD, - SMSG_PLAYER_ITEM_RENTAL_TIME, - SMSG_PLAYER_ITEM_RENTAL_EXPIRED, - SMSG_CART_INFO, - SMSG_CART_REMOVE, - SMSG_PLAYER_CART_ADD, - SMSG_PLAYER_CART_EQUIP, - SMSG_PLAYER_CART_ITEMS, - SMSG_PLAYER_CART_REMOVE, - SMSG_PLAYER_IDENTIFY_LIST, - SMSG_PLAYER_IDENTIFIED, - SMSG_PLAYER_REFINE, - SMSG_PLAYER_REPAIR_LIST, - SMSG_PLAYER_REPAIR_EFFECT, - SMSG_PLAYER_REFINE_LIST, - SMSG_PLAYER_STORAGE_PASSWORD, - SMSG_PLAYER_STORAGE_PASSWORD_RESULT, - SMSG_PLAYER_COOKING_LIST, - SMSG_ITEM_DAMAGED, - SMSG_PLAYER_FAVORITE_ITEM, - SMSG_PLAYER_CART_ADD_ERROR, - SMSG_BIND_ITEM, - 0 - }; - handledMessages = _messages; inventoryHandler = this; InventoryRecv::mCartItems.clear(); @@ -122,175 +76,6 @@ InventoryHandler::~InventoryHandler() { } -void InventoryHandler::handleMessage(Net::MessageIn &msg) -{ - switch (msg.getId()) - { - case SMSG_PLAYER_INVENTORY: - InventoryRecv::processPlayerInventory(msg); - break; - - case SMSG_PLAYER_STORAGE_ITEMS: - InventoryRecv::processPlayerStorage(msg); - break; - - case SMSG_PLAYER_STORAGE_EQUIP: - InventoryRecv::processPlayerStorageEquip(msg); - break; - - case SMSG_PLAYER_INVENTORY_ADD: - InventoryRecv::processPlayerInventoryAdd(msg); - break; - - case SMSG_PLAYER_INVENTORY_REMOVE: - Ea::InventoryRecv::processPlayerInventoryRemove(msg); - break; - - case SMSG_PLAYER_INVENTORY_REMOVE2: - InventoryRecv::processPlayerInventoryRemove2(msg); - break; - - case SMSG_PLAYER_INVENTORY_USE: - Ea::InventoryRecv::processPlayerInventoryUse(msg); - break; - - case SMSG_ITEM_USE_RESPONSE: - Ea::InventoryRecv::processItemUseResponse(msg); - break; - - case SMSG_PLAYER_STORAGE_STATUS: - Ea::InventoryRecv::processPlayerStorageStatus(msg); - break; - - case SMSG_PLAYER_STORAGE_ADD: - InventoryRecv::processPlayerStorageAdd(msg); - break; - - case SMSG_PLAYER_STORAGE_REMOVE: - InventoryRecv::processPlayerStorageRemove(msg); - break; - - case SMSG_PLAYER_STORAGE_CLOSE: - Ea::InventoryRecv::processPlayerStorageClose(msg); - break; - - case SMSG_PLAYER_EQUIPMENT: - InventoryRecv::processPlayerEquipment(msg); - break; - - case SMSG_PLAYER_EQUIP: - InventoryRecv::processPlayerEquip(msg); - break; - - case SMSG_PLAYER_UNEQUIP: - InventoryRecv::processPlayerUnEquip(msg); - break; - - case SMSG_PLAYER_ATTACK_RANGE: - Ea::InventoryRecv::processPlayerAttackRange(msg); - break; - - case SMSG_PLAYER_ARROW_EQUIP: - Ea::InventoryRecv::processPlayerArrowEquip(msg); - break; - - case SMSG_PLAYER_USE_CARD: - InventoryRecv::processPlayerUseCard(msg); - break; - - case SMSG_PLAYER_INSERT_CARD: - InventoryRecv::processPlayerInsertCard(msg); - break; - - case SMSG_PLAYER_ITEM_RENTAL_TIME: - InventoryRecv::processPlayerItemRentalTime(msg); - break; - - case SMSG_PLAYER_ITEM_RENTAL_EXPIRED: - InventoryRecv::processPlayerItemRentalExpired(msg); - break; - - case SMSG_CART_INFO: - InventoryRecv::processCartInfo(msg); - break; - - case SMSG_CART_REMOVE: - InventoryRecv::processCartRemove(msg); - break; - - case SMSG_PLAYER_CART_ADD: - InventoryRecv::processPlayerCartAdd(msg); - break; - - case SMSG_PLAYER_CART_EQUIP: - InventoryRecv::processPlayerCartEquip(msg); - break; - - case SMSG_PLAYER_CART_ITEMS: - InventoryRecv::processPlayerCartItems(msg); - break; - - case SMSG_PLAYER_CART_REMOVE: - InventoryRecv::processPlayerCartRemove(msg); - break; - - case SMSG_PLAYER_IDENTIFY_LIST: - InventoryRecv::processPlayerIdentifyList(msg); - break; - - case SMSG_PLAYER_IDENTIFIED: - InventoryRecv::processPlayerIdentified(msg); - break; - - case SMSG_PLAYER_REFINE: - InventoryRecv::processPlayerRefine(msg); - break; - - case SMSG_PLAYER_REPAIR_LIST: - InventoryRecv::processPlayerRepairList(msg); - break; - - case SMSG_PLAYER_REPAIR_EFFECT: - InventoryRecv::processPlayerRepairEffect(msg); - break; - - case SMSG_PLAYER_REFINE_LIST: - InventoryRecv::processPlayerRefineList(msg); - break; - - case SMSG_PLAYER_STORAGE_PASSWORD: - InventoryRecv::processPlayerStoragePassword(msg); - break; - - case SMSG_PLAYER_STORAGE_PASSWORD_RESULT: - InventoryRecv::processPlayerStoragePasswordResult(msg); - break; - - case SMSG_PLAYER_COOKING_LIST: - InventoryRecv::processPlayerCookingList(msg); - break; - - case SMSG_ITEM_DAMAGED: - InventoryRecv::processItemDamaged(msg); - break; - - case SMSG_PLAYER_FAVORITE_ITEM: - InventoryRecv::processFavoriteItem(msg); - break; - - case SMSG_PLAYER_CART_ADD_ERROR: - InventoryRecv::processCartAddError(msg); - break; - - case SMSG_BIND_ITEM: - InventoryRecv::processBindItem(msg); - break; - - default: - break; - } -} - void InventoryHandler::equipItem(const Item *const item) const { if (!item) |