diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2007-11-22 20:18:43 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2007-11-22 20:18:43 +0000 |
commit | 4cc4d62d084bc3002e35f6bd15a73f22157114e4 (patch) | |
tree | e492df521e068e0cd726382d0c08a939858196f2 /pokemod/EggGroup.h | |
parent | 83f4b43f63960ba30e38cf5bb53cd98ae738ef74 (diff) | |
download | sigen-4cc4d62d084bc3002e35f6bd15a73f22157114e4.tar.gz sigen-4cc4d62d084bc3002e35f6bd15a73f22157114e4.tar.xz sigen-4cc4d62d084bc3002e35f6bd15a73f22157114e4.zip |
[FIX] classes more usable
[FIX] Matrix class
[ADD] pokemod/Rules.{h, cpp}
[FIX] coding style cleaned up
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@28 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/EggGroup.h')
-rw-r--r-- | pokemod/EggGroup.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pokemod/EggGroup.h b/pokemod/EggGroup.h index 30af0d7f..b3e841b3 100644 --- a/pokemod/EggGroup.h +++ b/pokemod/EggGroup.h @@ -23,7 +23,6 @@ #ifndef __POKEMOD_EGGGROUP__ #define __POKEMOD_EGGGROUP__ -#include <QFile> #include <QString> #include "Object.h" #include "Pokemod.h" @@ -35,17 +34,20 @@ namespace PokeGen class EggGroup : public Object { public: - EggGroup(const Pokemod* par, const unsigned _id); - EggGroup(const Pokemod* par, Ini& ini, const unsigned _id = UINT_MAX); + EggGroup(const Pokemod& par, const unsigned _id); + EggGroup(const Pokemod& par, const EggGroup& e, const unsigned _id); + EggGroup(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX); - void ImportIni(Ini& ini, const unsigned _id = UINT_MAX); - void ExportIni(QFile& fout) const; + void load(const QString& fname, const unsigned _id = UINT_MAX); + void save() const; - void SetName(const QString& n); + void setName(const QString& n); - QString GetName() const; + QString getName() const; + + EggGroup& operator=(const EggGroup& rhs); private: - bool Validate(); + bool validate() const; QString name; }; |