From 60a2ed8ee8aa994c83d382af2ec477e171beb950 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 9 Jun 2008 00:50:59 +0000 Subject: [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 --- pokemod/Weather.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'pokemod/Weather.cpp') 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; -- cgit