summaryrefslogtreecommitdiff
path: root/src/gui/buy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buy.h')
-rw-r--r--src/gui/buy.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/buy.h b/src/gui/buy.h
index 6a1c9829..bf84d24e 100644
--- a/src/gui/buy.h
+++ b/src/gui/buy.h
@@ -24,25 +24,21 @@
#ifndef _TMW_BUY_H
#define _TMW_BUY_H
-#include <vector>
-
#include <guichan/actionlistener.hpp>
-#include <guichan/listmodel.hpp>
-#include "shop.h"
#include "window.h"
#include "../guichanfwd.h"
class Network;
+class ShopItems;
/**
* The buy dialog.
*
* \ingroup Interface
*/
-class BuyDialog : public Window, public gcn::ActionListener,
- public gcn::ListModel
+class BuyDialog : public Window, public gcn::ActionListener
{
public:
/**
@@ -53,6 +49,11 @@ class BuyDialog : public Window, public gcn::ActionListener,
BuyDialog(Network *network);
/**
+ * Destructor
+ */
+ ~BuyDialog();
+
+ /**
* Resets the dialog, clearing shop inventory.
*/
void reset();
@@ -101,7 +102,7 @@ class BuyDialog : public Window, public gcn::ActionListener,
gcn::Label *quantityLabel;
gcn::Slider *slider;
- std::vector<ITEM_SHOP> shopInventory;
+ ShopItems *mShopItems;
int m_money;
int m_amountItems;