summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-03 20:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-03 20:09:53 +0300
commit602fd127d09c995bc5470218c862b2cebfc558d5 (patch)
tree6937760eb81a234c2aaf9c7494f6bce02176a2f5 /src/shopitem.h
parentfef6ebca9c454f99d44e950c4628270b124c445f (diff)
downloadplus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.gz
plus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.bz2
plus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.xz
plus-602fd127d09c995bc5470218c862b2cebfc558d5.zip
Add filter into buy dialogs.
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