diff options
Diffstat (limited to 'pokemod/Weather.cpp')
| -rw-r--r-- | pokemod/Weather.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Weather.cpp b/pokemod/Weather.cpp index 59ff9135..49cd119a 100644 --- a/pokemod/Weather.cpp +++ b/pokemod/Weather.cpp @@ -22,49 +22,49 @@ #include "Pokemod.h" #include "Script.h" -Weather::Weather(const Weather& weather) : +Pokemod::Weather::Weather(const Weather& weather) : Object("Weather", weather.parent(), weather.id()) { *this = weather; } -Weather::Weather(const Pokemod* parent, const int id) : +Pokemod::Weather::Weather(const Pokemod* parent, const int id) : Object("Weather", parent, id), m_name(""), m_script("", "") { } -Weather::Weather(const Weather& weather, const Pokemod* parent, const int id) : +Pokemod::Weather::Weather(const Weather& weather, const Pokemod* parent, const int id) : Object("Weather", parent, id) { *this = weather; } -Weather::Weather(const QDomElement& xml, const Pokemod* parent, const int id) : +Pokemod::Weather::Weather(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Weather", parent, id) { load(xml, id); } -Weather::~Weather() +Pokemod::Weather::~Weather() { } -void Weather::validate() +void Pokemod::Weather::validate() { if (m_name.isEmpty()) emit(error("Name is empty")); } -void Weather::load(const QDomElement& xml, int id) +void Pokemod::Weather::load(const QDomElement& xml, int id) { LOAD_ID(); LOAD(QString, name); LOAD(Script, script); } -QDomElement Weather::save() const +QDomElement Pokemod::Weather::save() const { SAVE_CREATE(); SAVE(QString, name); @@ -72,27 +72,27 @@ QDomElement Weather::save() const return xml; } -void Weather::setName(const QString& name) +void Pokemod::Weather::setName(const QString& name) { CHECK(name); } -void Weather::setScript(const Script& script) +void Pokemod::Weather::setScript(const Script& script) { CHECK(script); } -QString Weather::name() const +QString Pokemod::Weather::name() const { return m_name; } -Script Weather::script() const +Pokemod::Script Pokemod::Weather::script() const { return m_script; } -Weather& Weather::operator=(const Weather& rhs) +Pokemod::Weather& Pokemod::Weather::operator=(const Weather& rhs) { if (this == &rhs) return *this; |
