diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 09:47:12 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 09:47:12 +0000 |
commit | 7465e9bf8fe03961c02b360002439c1072090bf0 (patch) | |
tree | 9e25884ea13a29e370625ddf51c7eedb6326931b /src/game-server/item.hpp | |
parent | 59e483ca6d2ec680f438787b4b3213534380c871 (diff) | |
download | manaserv-7465e9bf8fe03961c02b360002439c1072090bf0.tar.gz manaserv-7465e9bf8fe03961c02b360002439c1072090bf0.tar.bz2 manaserv-7465e9bf8fe03961c02b360002439c1072090bf0.tar.xz manaserv-7465e9bf8fe03961c02b360002439c1072090bf0.zip |
Implemented item dropping.
Diffstat (limited to 'src/game-server/item.hpp')
-rw-r--r-- | src/game-server/item.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game-server/item.hpp b/src/game-server/item.hpp index 9d2ebb72..dd61dd2a 100644 --- a/src/game-server/item.hpp +++ b/src/game-server/item.hpp @@ -225,17 +225,21 @@ class ItemClass class Item: public Object { public: - Item(ItemClass *type) - : Object(OBJECT_ITEM), mType(type) + Item(ItemClass *type, int amount) + : Object(OBJECT_ITEM), mType(type), mAmount(amount) {} ItemClass *getItemClass() const { return mType; } + int getAmount() const + { return mAmount; } + virtual void update() {} private: ItemClass *mType; + unsigned char mAmount; }; #endif |