diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/net/inventoryhandler.h | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index cbd1b6c5..73a07710 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -27,24 +27,25 @@ #include <iosfwd> namespace Net { -class InvyHandler + +class InventoryHandler { public: - virtual void equipItem(Item *item) {} + virtual void equipItem(Item *item) = 0; - virtual void unequipItem(Item *item) {} + virtual void unequipItem(Item *item) = 0; - virtual void useItem(Item *item) {} + virtual void useItem(Item *item) = 0; - virtual void dropItem(Item *item, int amount) {} + virtual void dropItem(Item *item, int amount) = 0; - virtual void splitItem(Item *item, int amount) {} + virtual void splitItem(Item *item, int amount) = 0; - virtual void openStorage() {} + virtual void openStorage() = 0; - virtual void closeStorage() {} + virtual void closeStorage() = 0; - //void changeCart() {} + //void changeCart() = 0; enum StorageType { INVENTORY, @@ -53,8 +54,9 @@ class InvyHandler }; virtual void moveItem(StorageType source, int slot, int amount, - StorageType destination) {} + StorageType destination) = 0; }; -} + +} // namespace Net #endif // INVENTORYHANDLER_H |