From 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 6 Sep 2008 04:12:30 +0000 Subject: [FIX] Renamed everything (in use) away from Poké- prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigmod/MapWildListEncounter.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'sigmod/MapWildListEncounter.cpp') diff --git a/sigmod/MapWildListEncounter.cpp b/sigmod/MapWildListEncounter.cpp index 4ff41f4a..17482f4f 100644 --- a/sigmod/MapWildListEncounter.cpp +++ b/sigmod/MapWildListEncounter.cpp @@ -18,20 +18,20 @@ // Header include #include "MapWildListEncounter.h" -// Pokemod includes +// Sigmod includes #include "Macros.h" #include "MapWildList.h" -#include "Pokemod.h" #include "Rules.h" +#include "Sigmod.h" #include "Species.h" -Pokemod::MapWildListEncounter::MapWildListEncounter(const MapWildListEncounter& encounter) : +Sigmod::MapWildListEncounter::MapWildListEncounter(const MapWildListEncounter& encounter) : Object(encounter.parent(), encounter.id()) { *this = encounter; } -Pokemod::MapWildListEncounter::MapWildListEncounter(const MapWildList* parent, const int id) : +Sigmod::MapWildListEncounter::MapWildListEncounter(const MapWildList* parent, const int id) : Object(parent, id), m_species(INT_MAX), m_level(1), @@ -39,20 +39,20 @@ Pokemod::MapWildListEncounter::MapWildListEncounter(const MapWildList* parent, c { } -Pokemod::MapWildListEncounter::MapWildListEncounter(const MapWildListEncounter& encounter, const MapWildList* parent, const int id) : +Sigmod::MapWildListEncounter::MapWildListEncounter(const MapWildListEncounter& encounter, const MapWildList* parent, const int id) : Object(parent, id) { *this = encounter; } -Pokemod::MapWildListEncounter::MapWildListEncounter(const QDomElement& xml, const MapWildList* parent, const int id) : +Sigmod::MapWildListEncounter::MapWildListEncounter(const QDomElement& xml, const MapWildList* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -void Pokemod::MapWildListEncounter::validate() +void Sigmod::MapWildListEncounter::validate() { TEST_BEGIN(); TEST(setSpecies, species); @@ -61,7 +61,7 @@ void Pokemod::MapWildListEncounter::validate() TEST_END(); } -void Pokemod::MapWildListEncounter::load(const QDomElement& xml) +void Sigmod::MapWildListEncounter::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(species); @@ -69,7 +69,7 @@ void Pokemod::MapWildListEncounter::load(const QDomElement& xml) LOAD(weight); } -QDomElement Pokemod::MapWildListEncounter::save() const +QDomElement Sigmod::MapWildListEncounter::save() const { SAVE_CREATE(); SAVE(species); @@ -78,23 +78,23 @@ QDomElement Pokemod::MapWildListEncounter::save() const return xml; } -void Pokemod::MapWildListEncounter::setSpecies(const int species) +void Sigmod::MapWildListEncounter::setSpecies(const int species) { - if (qobject_cast(pokemod())->speciesIndex(species) == INT_MAX) + if (qobject_cast(sigmod())->speciesIndex(species) == INT_MAX) emit(error(bounds("species"))); else CHECK(species); } -void Pokemod::MapWildListEncounter::setLevel(const int level) +void Sigmod::MapWildListEncounter::setLevel(const int level) { - if (!level || (qobject_cast(pokemod())->rules()->maxLevel() <= level)) + if (!level || (qobject_cast(sigmod())->rules()->maxLevel() <= level)) emit(error(bounds("level"))); else CHECK(level); } -void Pokemod::MapWildListEncounter::setWeight(const int weight) +void Sigmod::MapWildListEncounter::setWeight(const int weight) { if (!weight) emit(error(bounds("weight"))); @@ -102,22 +102,22 @@ void Pokemod::MapWildListEncounter::setWeight(const int weight) CHECK(weight); } -int Pokemod::MapWildListEncounter::species() const +int Sigmod::MapWildListEncounter::species() const { return m_species; } -int Pokemod::MapWildListEncounter::level() const +int Sigmod::MapWildListEncounter::level() const { return m_level; } -int Pokemod::MapWildListEncounter::weight() const +int Sigmod::MapWildListEncounter::weight() const { return m_weight; } -Pokemod::MapWildListEncounter& Pokemod::MapWildListEncounter::operator=(const MapWildListEncounter& rhs) +Sigmod::MapWildListEncounter& Sigmod::MapWildListEncounter::operator=(const MapWildListEncounter& rhs) { if (this == &rhs) return *this; -- cgit