summaryrefslogtreecommitdiffstats
path: root/sigmod/MapWildListEncounter.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
commit0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch)
treea2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmod/MapWildListEncounter.cpp
parentb81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff)
downloadsigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/MapWildListEncounter.cpp')
-rw-r--r--sigmod/MapWildListEncounter.cpp36
1 files changed, 18 insertions, 18 deletions
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<const Pokemod*>(pokemod())->speciesIndex(species) == INT_MAX)
+ if (qobject_cast<const Sigmod*>(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<const Pokemod*>(pokemod())->rules()->maxLevel() <= level))
+ if (!level || (qobject_cast<const Sigmod*>(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;