From 61483740edea22a6f5ef974f7b2b0796ff49fb6e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Aug 2015 00:31:59 +0300 Subject: Fix item icon color if insert card in it. --- src/item.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/item.h') 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. */ -- cgit v1.2.3-70-g09d2