From 4e97da8e138b21a5f5bea75e6a8d3211e4f28594 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Mar 2016 23:29:04 +0300 Subject: Add enum for item types. --- src/gui/models/shopitems.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/models/shopitems.h') diff --git a/src/gui/models/shopitems.h b/src/gui/models/shopitems.h index d346c38b7..0aedce83f 100644 --- a/src/gui/models/shopitems.h +++ b/src/gui/models/shopitems.h @@ -23,6 +23,8 @@ #ifndef GUI_MODELS_SHOPITEMS_H #define GUI_MODELS_SHOPITEMS_H +#include "enums/resources/itemtype.h" + #include "enums/simpletypes/itemcolor.h" #include "gui/models/listmodel.h" @@ -61,7 +63,7 @@ class ShopItems final : public ListModel * Adds an item to the list. */ ShopItem *addItem(const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price); @@ -77,13 +79,13 @@ class ShopItems final : public ListModel */ ShopItem *addItem2(const int inventoryIndex, const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price); ShopItem *addItemNoDup(const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price); -- cgit v1.2.3-60-g2f50