summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
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. */
};