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/inventoryhandler.h | |
parent | ac18a72c9972faf6dbd68abf3c883b2d444396c8 (diff) | |
download | mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.gz mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.bz2 mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.xz mana-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/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 9d0a5bc8..e48043a7 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -22,6 +22,7 @@ #ifndef INVENTORYHANDLER_H #define INVENTORYHANDLER_H +#include "inventory.h" #include "item.h" #include <iosfwd> @@ -45,24 +46,17 @@ class InventoryHandler virtual void moveItem(int oldIndex, int newIndex) = 0; - enum StorageType { - INVENTORY, - STORAGE, - GUILD_STORAGE, - CART - }; + virtual void openStorage(int type) = 0; - virtual void openStorage(StorageType type) = 0; - - virtual void closeStorage(StorageType type) = 0; + virtual void closeStorage(int type) = 0; //void changeCart() = 0; - virtual void moveItem(StorageType source, int slot, int amount, - StorageType destination) = 0; + virtual void moveItem(int source, int slot, int amount, + int destination) = 0; // TODO: fix/remove me - virtual size_t getSize(StorageType type) const = 0; + virtual size_t getSize(int type) const = 0; virtual ~InventoryHandler() {} }; |