summaryrefslogtreecommitdiff
path: root/src/resources/item/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/item/item.h')
-rw-r--r--src/resources/item/item.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/item/item.h b/src/resources/item/item.h
index 2a638f68a..f1712d26a 100644
--- a/src/resources/item/item.h
+++ b/src/resources/item/item.h
@@ -40,6 +40,8 @@
class Image;
+struct ItemOptionsList;
+
/**
* Represents one or more instances of a certain item type.
*/
@@ -211,6 +213,11 @@ class Item notfinal
const int *getCards() const noexcept2 A_WARN_UNUSED
{ return mCards; }
+ void setOptions(const ItemOptionsList *const options);
+
+ const ItemOptionsList *getOptions() const noexcept2 A_WARN_UNUSED
+ { return mOptions; }
+
void setType(const ItemTypeT type) noexcept2
{ mType = type; }
@@ -245,6 +252,7 @@ class Item notfinal
std::string mDescription;
std::map <int, int> mTags;
int mCards[maxCards];
+ const ItemOptionsList *mOptions;
uint8_t mRefine; /**< Item refine level. */
int mInvIndex; /**< Inventory index. */
ItemTypeT mType; /**< Item type. */