diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-21 19:12:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-21 19:12:35 +0300 |
commit | 2dc2a95e4aa1466f7fd29f41b2b976ab47241259 (patch) | |
tree | 27a95e4744c2d1bb4e37ecac878738e549852df2 /src/item.h | |
parent | 3652f41912042501d55e7663315608e0cb8b3bf8 (diff) | |
download | plus-2dc2a95e4aa1466f7fd29f41b2b976ab47241259.tar.gz plus-2dc2a95e4aa1466f7fd29f41b2b976ab47241259.tar.bz2 plus-2dc2a95e4aa1466f7fd29f41b2b976ab47241259.tar.xz plus-2dc2a95e4aa1466f7fd29f41b2b976ab47241259.zip |
Add tag field into item.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h index 7df66f4b9..9f0772286 100644 --- a/src/item.h +++ b/src/item.h @@ -215,6 +215,12 @@ class Item notfinal int getType() const A_WARN_UNUSED { return mType; } + void setTag(const int tag) + { mTag = tag; } + + int getTag() const A_WARN_UNUSED + { return mTag; } + void addCard(const int card); void updateColor(); @@ -231,6 +237,7 @@ class Item notfinal uint8_t mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ int mType; /**< Item type. */ + int mTag; Equipm mEquipment; /**< Item is equipment. */ Equipped mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ |