summaryrefslogtreecommitdiff
path: root/src/gui/shop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shop.h')
-rw-r--r--src/gui/shop.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gui/shop.h b/src/gui/shop.h
index e256f869..fb1f33fd 100644
--- a/src/gui/shop.h
+++ b/src/gui/shop.h
@@ -25,6 +25,9 @@
#define _SHOP_H
#include <string>
+#include <vector>
+
+#include <guichan/listmodel.hpp>
struct ITEM_SHOP {
std::string name;
@@ -34,4 +37,23 @@ struct ITEM_SHOP {
int quantity;
};
+class ShopItems : public std::vector<ITEM_SHOP>, public gcn::ListModel
+{
+ public:
+ /**
+ * Destructor
+ */
+ virtual ~ShopItems() {};
+
+ /**
+ * Returns the number of items in the shop.
+ */
+ int getNumberOfElements();
+
+ /**
+ * Returns the name of item number i in the shop.
+ */
+ std::string getElementAt(int i);
+};
+
#endif