summaryrefslogtreecommitdiff
path: root/src/gui/buysell.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buysell.h')
-rw-r--r--src/gui/buysell.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gui/buysell.h b/src/gui/buysell.h
index e3cdc52a..4b137554 100644
--- a/src/gui/buysell.h
+++ b/src/gui/buysell.h
@@ -26,6 +26,8 @@
#include "window.h"
+class Network;
+
/**
* A dialog to choose between buying or selling at a shop.
*
@@ -40,12 +42,24 @@ class BuySellDialog : public Window, public gcn::ActionListener
*
* @see Window::Window
*/
- BuySellDialog();
+ BuySellDialog(Network *network);
+
+ /**
+ * Check for current NPC
+ */
+ void logic();
+
+ void setVisible(bool visible);
/**
* Called when receiving actions from the widgets.
*/
void action(const gcn::ActionEvent &event);
+
+ private:
+ Network *mNetwork;
};
+extern BuySellDialog *buySellDialog;
+
#endif