summaryrefslogtreecommitdiff
path: root/src/game-server/item.hpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 09:47:12 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 09:47:12 +0000
commit7465e9bf8fe03961c02b360002439c1072090bf0 (patch)
tree9e25884ea13a29e370625ddf51c7eedb6326931b /src/game-server/item.hpp
parent59e483ca6d2ec680f438787b4b3213534380c871 (diff)
downloadmanaserv-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.hpp8
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