summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/inventoryhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-06 08:22:19 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-06 08:22:19 -0600
commit429e82f91487d48ecb5a1742ec6fb6987a2bc9bd (patch)
treed3789c7ef91680ba6a6a0eee56664ba3de690d94 /src/net/tmwserv/inventoryhandler.h
parent678c2316e34021bb16ac08eb48186f5570dc691b (diff)
downloadMana-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/tmwserv/inventoryhandler.h')
-rw-r--r--src/net/tmwserv/inventoryhandler.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/tmwserv/inventoryhandler.h b/src/net/tmwserv/inventoryhandler.h
index c70b10c0..9ae37c10 100644
--- a/src/net/tmwserv/inventoryhandler.h
+++ b/src/net/tmwserv/inventoryhandler.h
@@ -34,15 +34,19 @@ class InventoryHandler : public MessageHandler, Net::InventoryHandler
void handleMessage(MessageIn &msg);
- void equipItem(Item *item);
+ void equipItem(const Item *item);
- void unequipItem(Item *item);
+ void unequipItem(const Item *item);
- void useItem(Item *item);
+ void useItem(const Item *item);
- void dropItem(Item *item, int amount);
+ void dropItem(const Item *item, int amount);
- void splitItem(Item *item, int amount);
+ bool canSplit(const Item *item);
+
+ void splitItem(const Item *item, int amount);
+
+ void moveItem(int oldIndex, int newIndex);
void openStorage();