summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.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/tmwa/inventoryhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp97
1 files changed, 0 insertions, 97 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index 950a6b492..33d260673 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -62,30 +62,8 @@ namespace TmwAthena
{
InventoryHandler::InventoryHandler() :
- MessageHandler(),
Ea::InventoryHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_PLAYER_INVENTORY,
- SMSG_PLAYER_INVENTORY_ADD,
- SMSG_PLAYER_INVENTORY_REMOVE,
- 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,
- 0
- };
- handledMessages = _messages;
inventoryHandler = this;
}
@@ -93,81 +71,6 @@ InventoryHandler::~InventoryHandler()
{
}
-void InventoryHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("InventoryHandler::handleMessage")
- 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_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;
-
- default:
- break;
- }
- BLOCK_END("InventoryHandler::handleMessage")
-}
-
void InventoryHandler::equipItem(const Item *const item) const
{
if (!item)