diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 10:47:28 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 12:15:49 +0100 |
commit | 58b33406b1354e6814ed29d55a55a36053445ecd (patch) | |
tree | 2c8d1afcc84ff5a1f3ba28618422d4d617baa226 /src/gui/shop.h | |
parent | e64b5a25a54f56bc836af57223e37449a1daffe8 (diff) | |
download | mana-58b33406b1354e6814ed29d55a55a36053445ecd.tar.gz mana-58b33406b1354e6814ed29d55a55a36053445ecd.tar.bz2 mana-58b33406b1354e6814ed29d55a55a36053445ecd.tar.xz mana-58b33406b1354e6814ed29d55a55a36053445ecd.zip |
Include statement cleanup for net/ea/ directory.
Diffstat (limited to 'src/gui/shop.h')
-rw-r--r-- | src/gui/shop.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/gui/shop.h b/src/gui/shop.h index 6c3031af..190ef655 100644 --- a/src/gui/shop.h +++ b/src/gui/shop.h @@ -19,15 +19,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SHOP_H -#define _SHOP_H - -#include <string> -#include <vector> +#ifndef SHOP_H +#define SHOP_H #include <guichan/listmodel.hpp> -#include "../shopitem.h" +#include <string> +#include <vector> class ShopItem; @@ -44,16 +42,13 @@ class ShopItems : public gcn::ListModel { public: /** - * Constructor. Creates a new ShopItems instance. + * Constructor. * * @param mergeDuplicates lets the Shop look for duplicate entries and * merges them to one item. */ ShopItems(bool mergeDuplicates = false); - /** - * Destructor. - */ ~ShopItems(); /** @@ -76,8 +71,6 @@ class ShopItems : public gcn::ListModel /** * Returns the number of items in the shop. - * - * @return the number of items in the shop */ int getNumberOfElements(); @@ -91,7 +84,7 @@ class ShopItems : public gcn::ListModel /** * Returns the item number i in the shop. */ - ShopItem* at(int i) const; + ShopItem *at(int i) const; /** * Removes an element from the shop. @@ -101,7 +94,7 @@ class ShopItems : public gcn::ListModel void erase(int i); /** - * Clear the vector. + * Clears the list of items in the shop. */ void clear(); @@ -112,13 +105,13 @@ class ShopItems : public gcn::ListModel * * @return the item found or 0 */ - ShopItem* findItem(int id); + ShopItem *findItem(int id); - /** the shop storage */ + /** The list of items in the shop. */ std::vector<ShopItem*> mShopItems; - /** Look for duplicate entries on addition */ + /** Look for duplicate entries on addition. */ bool mMergeDuplicates; }; -#endif +#endif // SHOP_H |