diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 08:22:19 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-06 08:22:19 -0600 |
commit | 429e82f91487d48ecb5a1742ec6fb6987a2bc9bd (patch) | |
tree | d3789c7ef91680ba6a6a0eee56664ba3de690d94 /src/net/inventoryhandler.h | |
parent | 678c2316e34021bb16ac08eb48186f5570dc691b (diff) | |
download | mana-429e82f91487d48ecb5a1742ec6fb6987a2bc9bd.tar.gz mana-429e82f91487d48ecb5a1742ec6fb6987a2bc9bd.tar.bz2 mana-429e82f91487d48ecb5a1742ec6fb6987a2bc9bd.tar.xz mana-429e82f91487d48ecb5a1742ec6fb6987a2bc9bd.zip |
Remove more inventory handling support #ifdefs
This also fixes some minor bugs and centralizes some logic.
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 73a07710..19060797 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -31,15 +31,19 @@ namespace Net { class InventoryHandler { public: - virtual void equipItem(Item *item) = 0; + virtual void equipItem(const Item *item) = 0; - virtual void unequipItem(Item *item) = 0; + virtual void unequipItem(const Item *item) = 0; - virtual void useItem(Item *item) = 0; + virtual void useItem(const Item *item) = 0; - virtual void dropItem(Item *item, int amount) = 0; + virtual void dropItem(const Item *item, int amount) = 0; - virtual void splitItem(Item *item, int amount) = 0; + virtual bool canSplit(const Item *item) = 0; + + virtual void splitItem(const Item *item, int amount) = 0; + + virtual void moveItem(int oldIndex, int newIndex) = 0; virtual void openStorage() = 0; |