diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
commit | 78e67de6f70aab502a85578264b60493a818b39f (patch) | |
tree | 33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/inventoryhandler.h | |
parent | 37432edac65a6b85c7a3414a421f2afd3e67a14e (diff) | |
download | mana-78e67de6f70aab502a85578264b60493a818b39f.tar.gz mana-78e67de6f70aab502a85578264b60493a818b39f.tar.bz2 mana-78e67de6f70aab502a85578264b60493a818b39f.tar.xz mana-78e67de6f70aab502a85578264b60493a818b39f.zip |
Make network handler functions virtual
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 22427099..ebd35489 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -27,34 +27,34 @@ #include <iosfwd> namespace Net { - class InvyHandler - { - public: - void equipItem(Item *item); +class InvyHandler +{ + public: + virtual void equipItem(Item *item) {} - void unequipItem(Item *item); + virtual void unequipItem(Item *item) {} - void useItem(int slot, Item *item); + virtual void useItem(int slot, Item *item) {} - void dropItem(int slot, int amount); + virtual void dropItem(int slot, int amount) {} - void splitItem(int slot, int amount) {} + virtual void splitItem(int slot, int amount) {} - void openStorage() {} + virtual void openStorage() {} - void closeStorage() {} + virtual void closeStorage() {} - //void changeCart() {} + //void changeCart() {} - enum StorageType { - INVENTORY, - STORAGE, - CART - }; + enum StorageType { + INVENTORY, + STORAGE, + CART + }; - void moveItem(StorageType source, int slot, int amount, - StorageType destination) {} - }; + virtual void moveItem(StorageType source, int slot, int amount, + StorageType destination) {} +}; } #endif // INVENTORYHANDLER_H |