summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shopitem.h')
-rw-r--r--src/shopitem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index 9b85c8781..68bdc51b5 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -137,6 +137,12 @@ class ShopItem final : public Item
const std::string &getDisplayName() const A_WARN_UNUSED
{ return mDisplayName; }
+ void setVisible(const bool b)
+ { mVisible = b; }
+
+ bool isVisible() const
+ { return mVisible; }
+
protected:
void updateDisplayName(const int quantity);
@@ -153,6 +159,7 @@ class ShopItem final : public Item
std::stack<DuplicateItem*> mDuplicates; /** <-- Stores duplicates */
int mPrice;
bool mShowQuantity;
+ bool mVisible;
};
#endif // SHOPITEM_H