diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/net/ea/inventoryhandler.cpp | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 423d2e9c..7dfb6277 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -47,7 +47,7 @@ enum { debugInventory = 1 }; -InventoryHandler *invyHandler; +InventoryHandler *inventoryHandler; InventoryHandler::InventoryHandler() { @@ -66,7 +66,7 @@ InventoryHandler::InventoryHandler() 0 }; handledMessages = _messages; - invyHandler = this; + inventoryHandler = this; } void InventoryHandler::handleMessage(MessageIn &msg) @@ -337,6 +337,16 @@ void InventoryHandler::dropItem(Item *item, int amount) outMsg.writeInt16(amount); } +void InventoryHandler::splitItem(Item *item, int amount) +{ + // Not implemented for eAthena (possible?) +} + +void InventoryHandler::openStorage() +{ + // Doesn't apply to eAthena, since opening happens through NPCs? +} + void InventoryHandler::closeStorage() { MessageOut outMsg(CMSG_CLOSE_STORAGE); |