summaryrefslogtreecommitdiffstats
path: root/sigmod/MapWildListEncounter.cpp
diff options
context:
space:
mode:
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;