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/windows/tradewindow.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/tradewindow.h') diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index 98b18ba7e..f8a280a20 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -25,6 +25,8 @@ #include "gui/widgets/window.h" +#include "enums/resources/itemtype.h" + #include "enums/simpletypes/damaged.h" #include "enums/simpletypes/equipm.h" #include "enums/simpletypes/favorite.h" @@ -72,7 +74,7 @@ class TradeWindow final : public Window, * Add an item to the trade window. */ void addItem(const int id, - const int type, + const ItemTypeT type, const bool own, const int quantity, const uint8_t refine, @@ -90,7 +92,7 @@ class TradeWindow final : public Window, * Add an item to the trade window. */ void addItem2(const int id, - const int type, + const ItemTypeT type, const int *const cards, const int sz, const bool own, @@ -122,7 +124,8 @@ class TradeWindow final : public Window, /** * Send trade packet. */ - void tradeItem(const Item *const item, const int quantity, + void tradeItem(const Item *const item, + const int quantity, const bool check = false) const; /** -- cgit v1.2.3-60-g2f50