diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 14:57:35 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-05 14:57:35 +0000 |
commit | de61b658590630cfc59960c012c8e533b361a8b0 (patch) | |
tree | b89a6f23a385ea4a7d32e3abc6ce4a82114c5d67 /src/gui/shop.h | |
parent | dbca3013575b766a681d1cea946e249a386e2144 (diff) | |
parent | 482f0ddb85487bd5a4beaf2706cca9f690aa9304 (diff) | |
download | mana-client-de61b658590630cfc59960c012c8e533b361a8b0.tar.gz mana-client-de61b658590630cfc59960c012c8e533b361a8b0.tar.bz2 mana-client-de61b658590630cfc59960c012c8e533b361a8b0.tar.xz mana-client-de61b658590630cfc59960c012c8e533b361a8b0.zip |
Moved 0.1.0 branch to trunk. A new beginning.
Diffstat (limited to 'src/gui/shop.h')
-rw-r--r-- | src/gui/shop.h | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/src/gui/shop.h b/src/gui/shop.h index de452b5c..fb1f33fd 100644 --- a/src/gui/shop.h +++ b/src/gui/shop.h @@ -28,34 +28,22 @@ #include <vector> #include <guichan/listmodel.hpp> -#include "../resources/image.h" struct ITEM_SHOP { - short id; std::string name; - Image *image; int price; + short id; int index; int quantity; }; -class ShopItems : public gcn::ListModel +class ShopItems : public std::vector<ITEM_SHOP>, public gcn::ListModel { public: /** * Destructor */ - ~ShopItems(); - - /** - * Adds an item and its associated picture - */ - void addItem(short id, int price); - - /** - * Convenience function for adding items - */ - void push_back(ITEM_SHOP item_shop); + virtual ~ShopItems() {}; /** * Returns the number of items in the shop. @@ -66,25 +54,6 @@ class ShopItems : public gcn::ListModel * Returns the name of item number i in the shop. */ std::string getElementAt(int i); - - /** - * Returns the item number i in the shop. - */ - ITEM_SHOP at(int i); - - /** - * Clear the vector. - */ - void clear(); - - /** - * Direct access to the vector - */ - std::vector<ITEM_SHOP>* getShop(); - - private: - std::vector<ITEM_SHOP> mItemsShop; - }; #endif |