summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-31 21:29:00 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-31 21:29:00 +0000
commit36d28236321b6a2824ad4f394faeabbf79626808 (patch)
tree7d2475acf84852f2a21cc29eecbf7524cd58ff52 /src/item.h
parentc9f930c759004e179545c3b82992e3f8a12345f2 (diff)
downloadmana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.gz
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.bz2
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.tar.xz
mana-client-36d28236321b6a2824ad4f394faeabbf79626808.zip
Removed legacy inventory code. Added display of equipment.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/item.h b/src/item.h
index 47cdb1a9..2a60bf3a 100644
--- a/src/item.h
+++ b/src/item.h
@@ -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. */
};