summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-24 23:29:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-24 23:29:04 +0300
commit4e97da8e138b21a5f5bea75e6a8d3211e4f28594 (patch)
treec10d3cad963066a908ebd42041723e110a0c9bf0 /src/gui/windows/tradewindow.h
parentca0ca278d0c4aed9a6d50bb9a8982f5261151ab8 (diff)
downloadmanaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.gz
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.bz2
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.xz
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.zip
Add enum for item types.
Diffstat (limited to 'src/gui/windows/tradewindow.h')
-rw-r--r--src/gui/windows/tradewindow.h9
1 files changed, 6 insertions, 3 deletions
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;
/**