diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-23 01:27:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-23 01:27:45 +0300 |
commit | 9be90b76adb1518c4ffe0e365a18c5afcc3158f2 (patch) | |
tree | bbfea959321e05c329f18ac37757be91f38b9df8 /src/item.h | |
parent | 7f1053c5ce9e80485730290d002f7ae25db83996 (diff) | |
download | plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.gz plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.bz2 plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.tar.xz plus-9be90b76adb1518c4ffe0e365a18c5afcc3158f2.zip |
Add item type to item object.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h index 15ea64a07..80343f400 100644 --- a/src/item.h +++ b/src/item.h @@ -43,6 +43,7 @@ class Item notfinal * Constructor. */ Item(const int id, + const int type, const int quantity, const uint8_t refine, const uint8_t color, @@ -200,6 +201,12 @@ class Item notfinal const int *getCards() const { return mCards; } + void setType(const int type) + { mType = type; } + + int getType() const A_WARN_UNUSED + { return mType; } + int mId; /**< Item type id. */ unsigned char mColor; int mQuantity; /**< Number of items. */ @@ -211,6 +218,7 @@ class Item notfinal int mCards[maxCards]; uint8_t mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ + int mType; /**< Item type. */ bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ |