summaryrefslogtreecommitdiffstats
path: root/sigmod/Nature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Nature.cpp')
-rw-r--r--sigmod/Nature.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/sigmod/Nature.cpp b/sigmod/Nature.cpp
index e3018dea..11a301e6 100644
--- a/sigmod/Nature.cpp
+++ b/sigmod/Nature.cpp
@@ -18,19 +18,19 @@
// Header include
#include "Nature.h"
-// Pokemod includes
+// Sigmod includes
#include "Macros.h"
-#include "Pokemod.h"
#include "Rules.h"
+#include "Sigmod.h"
-Pokemod::Nature::Nature(const Nature& nature) :
+Sigmod::Nature::Nature(const Nature& nature) :
Object(nature.parent(), nature.id()),
m_stat(ST_End_GSC - ST_No_HP_Start)
{
*this = nature;
}
-Pokemod::Nature::Nature(const Pokemod* parent, const int id) :
+Sigmod::Nature::Nature(const Sigmod* parent, const int id) :
Object(parent, id),
m_name(""),
m_stat(ST_End_GSC - ST_No_HP_Start),
@@ -40,14 +40,14 @@ Pokemod::Nature::Nature(const Pokemod* parent, const int id) :
m_stat[i].set(1, 1);
}
-Pokemod::Nature::Nature(const Nature& nature, const Pokemod* parent, const int id) :
+Sigmod::Nature::Nature(const Nature& nature, const Sigmod* parent, const int id) :
Object(parent, id),
m_stat(ST_End_GSC - ST_No_HP_Start)
{
*this = nature;
}
-Pokemod::Nature::Nature(const QDomElement& xml, const Pokemod* parent, const int id) :
+Sigmod::Nature::Nature(const QDomElement& xml, const Sigmod* parent, const int id) :
Object(parent, id),
m_stat(ST_End_GSC - ST_No_HP_Start)
{
@@ -55,7 +55,7 @@ Pokemod::Nature::Nature(const QDomElement& xml, const Pokemod* parent, const int
load(xml);
}
-void Pokemod::Nature::validate()
+void Sigmod::Nature::validate()
{
TEST_BEGIN();
if (m_name.isEmpty())
@@ -64,7 +64,7 @@ void Pokemod::Nature::validate()
TEST_END();
}
-void Pokemod::Nature::load(const QDomElement& xml)
+void Sigmod::Nature::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(name);
@@ -72,7 +72,7 @@ void Pokemod::Nature::load(const QDomElement& xml)
LOAD(weight);
}
-QDomElement Pokemod::Nature::save() const
+QDomElement Sigmod::Nature::save() const
{
SAVE_CREATE();
SAVE(name);
@@ -81,17 +81,17 @@ QDomElement Pokemod::Nature::save() const
return xml;
}
-void Pokemod::Nature::setName(const QString& name)
+void Sigmod::Nature::setName(const QString& name)
{
CHECK(name);
}
-void Pokemod::Nature::setStat(const Stat stat, const Fraction& multiplier)
+void Sigmod::Nature::setStat(const Stat stat, const Fraction& multiplier)
{
switch (stat)
{
case ST_SpecialDefense:
- if (qobject_cast<const Pokemod*>(pokemod())->rules()->specialSplit())
+ if (qobject_cast<const Sigmod*>(sigmod())->rules()->specialSplit())
case ST_Attack ... ST_Special:
break;
default:
@@ -101,7 +101,7 @@ void Pokemod::Nature::setStat(const Stat stat, const Fraction& multiplier)
CHECK_ARRAY(stat[stat - ST_No_HP_Start], multiplier);
}
-void Pokemod::Nature::setWeight(const int weight)
+void Sigmod::Nature::setWeight(const int weight)
{
if (!weight)
emit(error(bounds("weight")));
@@ -109,17 +109,17 @@ void Pokemod::Nature::setWeight(const int weight)
CHECK(weight);
}
-QString Pokemod::Nature::name() const
+QString Sigmod::Nature::name() const
{
return m_name;
}
-Pokemod::Fraction Pokemod::Nature::stat(const Stat stat) const
+Sigmod::Fraction Sigmod::Nature::stat(const Stat stat) const
{
switch (stat)
{
case ST_SpecialDefense:
- if (qobject_cast<const Pokemod*>(pokemod())->rules()->specialSplit())
+ if (qobject_cast<const Sigmod*>(sigmod())->rules()->specialSplit())
case ST_Attack ... ST_Special:
return m_stat[stat - ST_No_HP_Start];
default:
@@ -128,12 +128,12 @@ Pokemod::Fraction Pokemod::Nature::stat(const Stat stat) const
}
}
-int Pokemod::Nature::weight() const
+int Sigmod::Nature::weight() const
{
return m_weight;
}
-Pokemod::Nature& Pokemod::Nature::operator=(const Nature& rhs)
+Sigmod::Nature& Sigmod::Nature::operator=(const Nature& rhs)
{
if (this == &rhs)
return *this;