summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-17 00:31:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-17 00:31:59 +0300
commit61483740edea22a6f5ef974f7b2b0796ff49fb6e (patch)
tree994d5335111234926948ae6e243aff178f37692f /src/item.h
parent9fe27169625eb51dbab172bb3d9cb27a06141486 (diff)
downloadplus-61483740edea22a6f5ef974f7b2b0796ff49fb6e.tar.gz
plus-61483740edea22a6f5ef974f7b2b0796ff49fb6e.tar.bz2
plus-61483740edea22a6f5ef974f7b2b0796ff49fb6e.tar.xz
plus-61483740edea22a6f5ef974f7b2b0796ff49fb6e.zip
Fix item icon color if insert card in it.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index c3b22a9dc..7df66f4b9 100644
--- a/src/item.h
+++ b/src/item.h
@@ -176,6 +176,9 @@ class Item notfinal
ItemColor getColor() const A_WARN_UNUSED
{ return mColor; }
+ void setColor(const ItemColor color)
+ { mColor = color; }
+
const std::string &getDescription() const A_WARN_UNUSED
{ return mDescription; }
@@ -214,6 +217,8 @@ class Item notfinal
void addCard(const int card);
+ void updateColor();
+
int mId; /**< Item type id. */
ItemColor mColor;
int mQuantity; /**< Number of items. */