diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
commit | 36d28236321b6a2824ad4f394faeabbf79626808 (patch) | |
tree | 7d2475acf84852f2a21cc29eecbf7524cd58ff52 /src/item.h | |
parent | c9f930c759004e179545c3b82992e3f8a12345f2 (diff) | |
download | mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.gz mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.bz2 mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.xz mana-36d28236321b6a2824ad4f394faeabbf79626808.zip |
Removed legacy inventory code. Added display of equipment.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 33 |
1 files changed, 1 insertions, 32 deletions
@@ -35,19 +35,7 @@ class Item /** * Constructor. */ - Item(int id = -1, int quantity = 0, - bool equipment = false, bool equipped = false): - mId(id), - mQuantity(quantity), - mEquipment(equipment), - mEquipped(equipped) - { - } - - /** - * Destructor. - */ - ~Item() {} + Item(int id = -1, int quantity = 0); /** * Sets the item id, identifying the item type. @@ -80,30 +68,12 @@ class Item getQuantity() const { return mQuantity; } /** - * Sets whether this item is considered equipment. - */ - void - setEquipment(bool equipment) { mEquipment = equipment; } - - /** * Returns whether this item is considered equipment. */ bool isEquipment() const { return mEquipment; } /** - * Sets whether this item is equipped. - */ - void - setEquipped(bool equipped) { mEquipped = equipped; } - - /** - * Returns whether this item is equipped. - */ - bool - isEquipped() const { return mEquipped; } - - /** * Sets the inventory index of this item. */ void @@ -125,7 +95,6 @@ class Item int mId; /**< Item type id. */ int mQuantity; /**< Number of items. */ bool mEquipment; /**< Item is equipment. */ - bool mEquipped; /**< Item is equipped. */ int mInvIndex; /**< Inventory index. */ }; |