summaryrefslogtreecommitdiff
path: root/src/gui/buy.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:59:23 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:59:23 +0000
commit2fb12d513bb7e10375893e1ae22da3538b20fa27 (patch)
tree8e4d43ccc427043762575b89a761341fff642adb /src/gui/buy.h
parent1764f1c1dfdc99504029a6f3275321bf31eabea4 (diff)
downloadmana-2fb12d513bb7e10375893e1ae22da3538b20fa27.tar.gz
mana-2fb12d513bb7e10375893e1ae22da3538b20fa27.tar.bz2
mana-2fb12d513bb7e10375893e1ae22da3538b20fa27.tar.xz
mana-2fb12d513bb7e10375893e1ae22da3538b20fa27.zip
Created a ListModel for ShopItems.
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;