summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Store.h')
-rw-r--r--pokemod/Store.h49
1 files changed, 23 insertions, 26 deletions
diff --git a/pokemod/Store.h b/pokemod/Store.h
index 56b81ef1..c81a6571 100644
--- a/pokemod/Store.h
+++ b/pokemod/Store.h
@@ -32,34 +32,31 @@
#include "Object.h"
#include "Pokemod.h"
-namespace PokeGen
+namespace PokeMod
{
- namespace PokeMod
+ class Store : public Object
{
- class Store : public Object
- {
- public:
- Store(const Pokemod& par, const unsigned _id);
- Store(const Pokemod& par, const Store& s, const unsigned _id);
- Store(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX);
-
- void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception);
- void save() const throw(Exception);
-
- void setName(const QString& n);
- void setItem(const unsigned itm, const bool it) throw(Exception);
-
- QString getName() const;
- bool getItem(const unsigned itm) const;
-
- Store& operator=(const Store& rhs);
- private:
- bool validate() const;
-
- QString name;
- QList<unsigned> items;
- };
- }
+ public:
+ Store(const Pokemod& par, const unsigned _id);
+ Store(const Pokemod& par, const Store& s, const unsigned _id);
+ Store(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX);
+
+ void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception);
+ void save() const throw(Exception);
+
+ void setName(const QString& n);
+ void setItem(const unsigned itm, const bool it) throw(Exception);
+
+ QString getName() const;
+ bool getItem(const unsigned itm) const;
+
+ Store& operator=(const Store& rhs);
+ private:
+ bool validate() const;
+
+ QString name;
+ QList<unsigned> items;
+ };
}
#endif