summaryrefslogtreecommitdiffstats
path: root/sigscript/TrainerWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/TrainerWrapper.cpp')
-rw-r--r--sigscript/TrainerWrapper.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/sigscript/TrainerWrapper.cpp b/sigscript/TrainerWrapper.cpp
index d552070b..c3ca4c7a 100644
--- a/sigscript/TrainerWrapper.cpp
+++ b/sigscript/TrainerWrapper.cpp
@@ -18,80 +18,80 @@
// Header include
#include "TrainerWrapper.h"
-// Pokescripting includes
-#include "PokemodWrapper.h"
+// Sigscript includes
+#include "SigmodWrapper.h"
-Pokescripting::TrainerWrapper* Pokescripting::TrainerWrapper::create(const Pokemod::Trainer* trainer, PokemodWrapper* parent)
+Sigscript::TrainerWrapper* Sigscript::TrainerWrapper::create(const Sigmod::Trainer* trainer, SigmodWrapper* parent)
{
if (!m_instances.contains(Signiture(parent, trainer->id())))
m_instances[Signiture(parent, trainer->id())] = new TrainerWrapper(trainer, parent);
return qobject_cast<TrainerWrapper*>(m_instances[Signiture(parent, trainer->id())]);
}
-Pokescripting::TrainerWrapper::TrainerWrapper(const Pokemod::Trainer* trainer, PokemodWrapper* parent) :
+Sigscript::TrainerWrapper::TrainerWrapper(const Sigmod::Trainer* trainer, SigmodWrapper* parent) :
ObjectWrapper(trainer, parent),
m_trainer(trainer)
{
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::intelligence(const QString& name) const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::intelligence(const QString& name) const
{
if (name == "Ignorant")
- return Pokemod::Trainer::Ignorant;
+ return Sigmod::Trainer::Ignorant;
else if (name == "Determine")
- return Pokemod::Trainer::Determine;
+ return Sigmod::Trainer::Determine;
else if (name == "Remember")
- return Pokemod::Trainer::Remember;
+ return Sigmod::Trainer::Remember;
else if (name == "Cheating")
- return Pokemod::Trainer::Cheating;
- return QVariant(-1).value<Pokemod::Trainer::Intelligence>();
+ return Sigmod::Trainer::Cheating;
+ return QVariant(-1).value<Sigmod::Trainer::Intelligence>();
}
-QString Pokescripting::TrainerWrapper::TrainerWrapper::name() const
+QString Sigscript::TrainerWrapper::TrainerWrapper::name() const
{
return m_trainer->name();
}
-int Pokescripting::TrainerWrapper::TrainerWrapper::moneyFactor() const
+int Sigscript::TrainerWrapper::TrainerWrapper::moneyFactor() const
{
if (value("moneyFactor").canConvert<int>())
return value("moneyFactor").toInt();
return m_trainer->moneyFactor();
}
-Pokescripting::SkinWrapper* Pokescripting::TrainerWrapper::TrainerWrapper::skin()
+Sigscript::SkinWrapper* Sigscript::TrainerWrapper::TrainerWrapper::skin()
{
- return pokemod()->skin(m_trainer->skin());
+ return sigmod()->skin(m_trainer->skin());
}
-int Pokescripting::TrainerWrapper::TrainerWrapper::depth() const
+int Sigscript::TrainerWrapper::TrainerWrapper::depth() const
{
if (value("depth").canConvert<int>())
return value("depth").toInt();
return m_trainer->depth();
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::TrainerWrapper::teamIntel() const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::TrainerWrapper::teamIntel() const
{
return m_trainer->teamIntel();
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::TrainerWrapper::moveIntel() const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::TrainerWrapper::moveIntel() const
{
return m_trainer->moveIntel();
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::TrainerWrapper::itemIntel() const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::TrainerWrapper::itemIntel() const
{
return m_trainer->itemIntel();
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::TrainerWrapper::abilityIntel() const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::TrainerWrapper::abilityIntel() const
{
return m_trainer->abilityIntel();
}
-Pokemod::Trainer::Intelligence Pokescripting::TrainerWrapper::TrainerWrapper::statIntel() const
+Sigmod::Trainer::Intelligence Sigscript::TrainerWrapper::TrainerWrapper::statIntel() const
{
return m_trainer->statIntel();
}