summaryrefslogtreecommitdiffstats
path: root/pokemod/EggGroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/EggGroup.h')
-rw-r--r--pokemod/EggGroup.h18
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;
};