diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemod/Weather.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
| download | sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.gz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.xz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.zip | |
[FIX] All modules now use their own namespace
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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; |
