summaryrefslogtreecommitdiff
path: root/src/gui/trade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r--src/gui/trade.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h
index 09e56d06..90c688c3 100644
--- a/src/gui/trade.h
+++ b/src/gui/trade.h
@@ -22,7 +22,7 @@
*/
#ifndef _TMW_TRADE_H
-#define _TMW_TRADE_H
+#define _TMW_TRADE_H
#include "../log.h"
#include "../net/network.h"
@@ -37,7 +37,8 @@
*
* \ingroup Interface
*/
-class TradeWindow : public Window, gcn::ActionListener {
+class TradeWindow : public Window, gcn::ActionListener
+{
public:
/**
* Constructor.
@@ -50,11 +51,6 @@ class TradeWindow : public Window, gcn::ActionListener {
~TradeWindow();
/**
- * Draws the trade window.
- */
- void draw(gcn::Graphics *graphics);
-
- /**
* Add an item the trade window.
*/
void addItem(int index, int id, bool own, int quantity, bool equipment);
@@ -78,35 +74,35 @@ class TradeWindow : public Window, gcn::ActionListener {
* Increase quantity of an item.
*/
void increaseQuantity(int index, bool own, int quantity);
-
+
/**
* Set trade Button disabled
*/
void setTradeButton(bool enabled);
-
+
/**
* Player received ok message from server
*/
void receivedOk(bool own);
-
+
/**
* Send trade packet.
*/
void TradeWindow::tradeItem(int index, int quantity);
-
+
/**
* Called on mouse click.
*/
void mouseClick(int x, int y, int button, int count);
-
+
/**
* Called when receiving actions from the widgets.
*/
void action(const std::string& eventId);
-
+
ItemContainer *myItems;
ItemContainer *partnerItems;
-
+
private:
gcn::Label *itemNameLabel;
gcn::Label *itemDescriptionLabel;