summaryrefslogtreecommitdiff
path: root/src/net/inventoryhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-03 00:01:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-03 00:01:34 +0300
commit1eea3f1102b7d8f87b076a5a8380fd71fc00d773 (patch)
treec6c993c12631ff2e9f9d9784e83497caf87edbf6 /src/net/inventoryhandler.h
parent2f6f5950605e3ffe8054f3a2675f10032ca0aaf6 (diff)
downloadmanaplus-1eea3f1102b7d8f87b076a5a8380fd71fc00d773.tar.gz
manaplus-1eea3f1102b7d8f87b076a5a8380fd71fc00d773.tar.bz2
manaplus-1eea3f1102b7d8f87b076a5a8380fd71fc00d773.tar.xz
manaplus-1eea3f1102b7d8f87b076a5a8380fd71fc00d773.zip
improve inventoryhandler class.
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r--src/net/inventoryhandler.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h
index 5cf6bc5db..3b8a24aa5 100644
--- a/src/net/inventoryhandler.h
+++ b/src/net/inventoryhandler.h
@@ -36,33 +36,37 @@ class InventoryHandler
virtual ~InventoryHandler()
{ }
- virtual void equipItem(const Item *item) = 0;
+ virtual void equipItem(const Item *const item) const = 0;
- virtual void unequipItem(const Item *item) = 0;
+ virtual void unequipItem(const Item *const item) const = 0;
- virtual void useItem(const Item *item) = 0;
+ virtual void useItem(const Item *const item) const = 0;
- virtual void dropItem(const Item *item, int amount) = 0;
+ virtual void dropItem(const Item *const item,
+ const int amount) const = 0;
- virtual bool canSplit(const Item *item) const = 0;
+ virtual bool canSplit(const Item *const item) const = 0;
- virtual void splitItem(const Item *item, int amount) = 0;
+ virtual void splitItem(const Item *const item,
+ const int amount) const = 0;
- virtual void moveItem(int oldIndex, int newIndex) = 0;
+ virtual void moveItem(const int oldIndex,
+ const int newIndex) const = 0;
- virtual void openStorage(int type) = 0;
+ virtual void openStorage(const int type) const = 0;
- virtual void closeStorage(int type) = 0;
+ virtual void closeStorage(const int type) const = 0;
//void changeCart() = 0;
- virtual void moveItem2(int source, int slot, int amount,
- int destination) = 0;
+ virtual void moveItem2(const int source, const int slot,
+ const int amount,
+ const int destination) const = 0;
// TODO: fix/remove me
- virtual size_t getSize(int type) const A_WARN_UNUSED = 0;
+ virtual size_t getSize(const int type) const A_WARN_UNUSED = 0;
- virtual int convertFromServerSlot(int eAthenaSlot) const = 0;
+ virtual int convertFromServerSlot(const int eAthenaSlot) const = 0;
};
} // namespace Net