diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 16:03:13 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 16:56:12 -0600 |
commit | 8745368108563d7c32820b989c3ea794ccb834f9 (patch) | |
tree | a69554b2e5659b25f50797cc6ab4cc95b2b6f84e /src/net/ea/inventoryhandler.h | |
parent | ac18a72c9972faf6dbd68abf3c883b2d444396c8 (diff) | |
download | mana-client-8745368108563d7c32820b989c3ea794ccb834f9.tar.gz mana-client-8745368108563d7c32820b989c3ea794ccb834f9.tar.bz2 mana-client-8745368108563d7c32820b989c3ea794ccb834f9.tar.xz mana-client-8745368108563d7c32820b989c3ea794ccb834f9.zip |
Remove the type boolean from InventoryWindow
This moves inventory/storage type into the Inventory class, having
size default to a call to the netcode to get the sive for the given
type.
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index d08e4772..cb127af9 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -118,6 +118,11 @@ typedef std::list<InventoryItem> InventoryItems; class InventoryHandler : public MessageHandler, public Net::InventoryHandler { public: + enum { + GUILD_STORAGE = Inventory::TYPE_END, + CART + }; + InventoryHandler(); ~InventoryHandler(); @@ -138,14 +143,14 @@ class InventoryHandler : public MessageHandler, public Net::InventoryHandler void moveItem(int oldIndex, int newIndex); - void openStorage(StorageType type); + void openStorage(int type); - void closeStorage(StorageType type); + void closeStorage(int type); - void moveItem(StorageType source, int slot, int amount, - StorageType destination); + void moveItem(int source, int slot, int amount, + int destination); - size_t getSize(StorageType type) const; + size_t getSize(int type) const; private: EquipBackend mEquips; |