summaryrefslogtreecommitdiffstats
path: root/sigmod/Trainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Trainer.cpp')
-rw-r--r--sigmod/Trainer.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/sigmod/Trainer.cpp b/sigmod/Trainer.cpp
index 0c80fc57..d169d2d6 100644
--- a/sigmod/Trainer.cpp
+++ b/sigmod/Trainer.cpp
@@ -18,19 +18,19 @@
// Header include
#include "Trainer.h"
-// Pokemod includes
+// Sigmod includes
#include "Macros.h"
-#include "Pokemod.h"
+#include "Sigmod.h"
-const QStringList Pokemod::Trainer::IntelligenceStr = QStringList() << "Ignorant" << "Remember" << "Cheating";
+const QStringList Sigmod::Trainer::IntelligenceStr = QStringList() << "Ignorant" << "Remember" << "Cheating";
-Pokemod::Trainer::Trainer(const Trainer& trainer) :
+Sigmod::Trainer::Trainer(const Trainer& trainer) :
Object(trainer.parent(), trainer.id())
{
*this = trainer;
}
-Pokemod::Trainer::Trainer(const Pokemod* parent, const int id) :
+Sigmod::Trainer::Trainer(const Sigmod* parent, const int id) :
Object(parent, id),
m_name(""),
m_moneyFactor(0),
@@ -44,20 +44,20 @@ Pokemod::Trainer::Trainer(const Pokemod* parent, const int id) :
{
}
-Pokemod::Trainer::Trainer(const Trainer& trainer, const Pokemod* parent, const int id) :
+Sigmod::Trainer::Trainer(const Trainer& trainer, const Sigmod* parent, const int id) :
Object(parent, id)
{
*this = trainer;
}
-Pokemod::Trainer::Trainer(const QDomElement& xml, const Pokemod* parent, const int id) :
+Sigmod::Trainer::Trainer(const QDomElement& xml, const Sigmod* parent, const int id) :
Object(parent, id)
{
LOAD_ID();
load(xml);
}
-void Pokemod::Trainer::validate()
+void Sigmod::Trainer::validate()
{
TEST_BEGIN();
if (m_name.isEmpty())
@@ -67,7 +67,7 @@ void Pokemod::Trainer::validate()
TEST_END();
}
-void Pokemod::Trainer::load(const QDomElement& xml)
+void Sigmod::Trainer::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(name);
@@ -81,7 +81,7 @@ void Pokemod::Trainer::load(const QDomElement& xml)
LOAD(statIntel);
}
-QDomElement Pokemod::Trainer::save() const
+QDomElement Sigmod::Trainer::save() const
{
SAVE_CREATE();
SAVE(name);
@@ -96,12 +96,12 @@ QDomElement Pokemod::Trainer::save() const
return xml;
}
-void Pokemod::Trainer::setName(const QString& name)
+void Sigmod::Trainer::setName(const QString& name)
{
CHECK(name);
}
-void Pokemod::Trainer::setMoneyFactor(const int moneyFactor)
+void Sigmod::Trainer::setMoneyFactor(const int moneyFactor)
{
if (moneyFactor < 0)
emit(error(bounds("moneyFactor")));
@@ -109,90 +109,90 @@ void Pokemod::Trainer::setMoneyFactor(const int moneyFactor)
CHECK(moneyFactor);
}
-void Pokemod::Trainer::setSkin(const int skin)
+void Sigmod::Trainer::setSkin(const int skin)
{
- if (qobject_cast<const Pokemod*>(pokemod())->skinIndex(skin) == INT_MAX)
+ if (qobject_cast<const Sigmod*>(sigmod())->skinIndex(skin) == INT_MAX)
emit(error(bounds("skin")));
else
CHECK(skin);
}
-void Pokemod::Trainer::setDepth(const int depth)
+void Sigmod::Trainer::setDepth(const int depth)
{
CHECK(depth);
}
-void Pokemod::Trainer::setTeamIntel(const Intelligence teamIntel)
+void Sigmod::Trainer::setTeamIntel(const Intelligence teamIntel)
{
CHECK(teamIntel);
}
-void Pokemod::Trainer::setMoveIntel(const Intelligence moveIntel)
+void Sigmod::Trainer::setMoveIntel(const Intelligence moveIntel)
{
CHECK(moveIntel);
}
-void Pokemod::Trainer::setItemIntel(const Intelligence itemIntel)
+void Sigmod::Trainer::setItemIntel(const Intelligence itemIntel)
{
CHECK(itemIntel);
}
-void Pokemod::Trainer::setAbilityIntel(const Intelligence abilityIntel)
+void Sigmod::Trainer::setAbilityIntel(const Intelligence abilityIntel)
{
CHECK(abilityIntel);
}
-void Pokemod::Trainer::setStatIntel(const Intelligence statIntel)
+void Sigmod::Trainer::setStatIntel(const Intelligence statIntel)
{
CHECK(statIntel);
}
-QString Pokemod::Trainer::name() const
+QString Sigmod::Trainer::name() const
{
return m_name;
}
-int Pokemod::Trainer::moneyFactor() const
+int Sigmod::Trainer::moneyFactor() const
{
return m_moneyFactor;
}
-int Pokemod::Trainer::skin() const
+int Sigmod::Trainer::skin() const
{
return m_skin;
}
-int Pokemod::Trainer::depth() const
+int Sigmod::Trainer::depth() const
{
return m_depth;
}
-Pokemod::Trainer::Intelligence Pokemod::Trainer::teamIntel() const
+Sigmod::Trainer::Intelligence Sigmod::Trainer::teamIntel() const
{
return m_teamIntel;
}
-Pokemod::Trainer::Intelligence Pokemod::Trainer::moveIntel() const
+Sigmod::Trainer::Intelligence Sigmod::Trainer::moveIntel() const
{
return m_moveIntel;
}
-Pokemod::Trainer::Intelligence Pokemod::Trainer::itemIntel() const
+Sigmod::Trainer::Intelligence Sigmod::Trainer::itemIntel() const
{
return m_itemIntel;
}
-Pokemod::Trainer::Intelligence Pokemod::Trainer::abilityIntel() const
+Sigmod::Trainer::Intelligence Sigmod::Trainer::abilityIntel() const
{
return m_abilityIntel;
}
-Pokemod::Trainer::Intelligence Pokemod::Trainer::statIntel() const
+Sigmod::Trainer::Intelligence Sigmod::Trainer::statIntel() const
{
return m_statIntel;
}
-Pokemod::Trainer& Pokemod::Trainer::operator=(const Trainer& rhs)
+Sigmod::Trainer& Sigmod::Trainer::operator=(const Trainer& rhs)
{
if (this == &rhs)
return *this;