diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-03 20:09:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-03 20:09:53 +0300 |
commit | 602fd127d09c995bc5470218c862b2cebfc558d5 (patch) | |
tree | 6937760eb81a234c2aaf9c7494f6bce02176a2f5 /src/shopitem.h | |
parent | fef6ebca9c454f99d44e950c4628270b124c445f (diff) | |
download | mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.gz mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.bz2 mv-602fd127d09c995bc5470218c862b2cebfc558d5.tar.xz mv-602fd127d09c995bc5470218c862b2cebfc558d5.zip |
Add filter into buy dialogs.
Diffstat (limited to 'src/shopitem.h')
-rw-r--r-- | src/shopitem.h | 7 |
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 |