diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
commit | 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch) | |
tree | a2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmod/Move.cpp | |
parent | b81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff) | |
download | sigen-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/Move.cpp')
-rw-r--r-- | sigmod/Move.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/sigmod/Move.cpp b/sigmod/Move.cpp index 823739e5..39cfef65 100644 --- a/sigmod/Move.cpp +++ b/sigmod/Move.cpp @@ -18,20 +18,20 @@ // Header include #include "Move.h" -// Pokemod includes +// Sigmod includes #include "Macros.h" -#include "Pokemod.h" +#include "Sigmod.h" // Qt includes #include <QtCore/QSet> -Pokemod::Move::Move(const Move& move) : +Sigmod::Move::Move(const Move& move) : Object(move.parent(), move.id()) { *this = move; } -Pokemod::Move::Move(const Pokemod* parent, const int id) : +Sigmod::Move::Move(const Sigmod* parent, const int id) : Object(parent, id), m_name(""), m_accuracy(1, 1), @@ -46,25 +46,25 @@ Pokemod::Move::Move(const Pokemod* parent, const int id) : { } -Pokemod::Move::Move(const Move& move, const Pokemod* parent, const int id) : +Sigmod::Move::Move(const Move& move, const Sigmod* parent, const int id) : Object(parent, id) { *this = move; } -Pokemod::Move::Move(const QDomElement& xml, const Pokemod* parent, const int id) : +Sigmod::Move::Move(const QDomElement& xml, const Sigmod* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -Pokemod::Move::~Move() +Sigmod::Move::~Move() { clear(); } -void Pokemod::Move::validate() +void Sigmod::Move::validate() { TEST_BEGIN(); if (m_name.isEmpty()) @@ -75,7 +75,7 @@ void Pokemod::Move::validate() TEST_END(); } -void Pokemod::Move::load(const QDomElement& xml) +void Sigmod::Move::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(name); @@ -90,7 +90,7 @@ void Pokemod::Move::load(const QDomElement& xml) LOAD(worldScript); } -QDomElement Pokemod::Move::save() const +QDomElement Sigmod::Move::save() const { SAVE_CREATE(); SAVE(name); @@ -106,12 +106,12 @@ QDomElement Pokemod::Move::save() const return xml; } -void Pokemod::Move::setName(const QString& name) +void Sigmod::Move::setName(const QString& name) { CHECK(name); } -void Pokemod::Move::setAccuracy(const Fraction& accuracy) +void Sigmod::Move::setAccuracy(const Fraction& accuracy) { if (!accuracy || (1 < accuracy)) emit(error(bounds("accuracy"))); @@ -119,25 +119,25 @@ void Pokemod::Move::setAccuracy(const Fraction& accuracy) CHECK(accuracy); } -void Pokemod::Move::setPower(const int power) +void Sigmod::Move::setPower(const int power) { CHECK(power); } -void Pokemod::Move::setType(const int type) +void Sigmod::Move::setType(const int type) { - if (qobject_cast<const Pokemod*>(pokemod())->typeIndex(type) == INT_MAX) + if (qobject_cast<const Sigmod*>(sigmod())->typeIndex(type) == INT_MAX) emit(error(bounds("type"))); else CHECK(type); } -void Pokemod::Move::setSpecial(const bool special) +void Sigmod::Move::setSpecial(const bool special) { CHECK(special); } -void Pokemod::Move::setPowerPoints(const int powerPoints) +void Sigmod::Move::setPowerPoints(const int powerPoints) { if (!powerPoints) emit(error(bounds("powerPoints"))); @@ -145,77 +145,77 @@ void Pokemod::Move::setPowerPoints(const int powerPoints) CHECK(powerPoints); } -void Pokemod::Move::setPriority(const int priority) +void Sigmod::Move::setPriority(const int priority) { CHECK(priority); } -void Pokemod::Move::setDescription(const QString& description) +void Sigmod::Move::setDescription(const QString& description) { CHECK(description); } -void Pokemod::Move::setBattleScript(const Script& battleScript) +void Sigmod::Move::setBattleScript(const Script& battleScript) { CHECK(battleScript); } -void Pokemod::Move::setWorldScript(const Script& worldScript) +void Sigmod::Move::setWorldScript(const Script& worldScript) { CHECK(worldScript); } -QString Pokemod::Move::name() const +QString Sigmod::Move::name() const { return m_name; } -Pokemod::Fraction Pokemod::Move::accuracy() const +Sigmod::Fraction Sigmod::Move::accuracy() const { return m_accuracy; } -int Pokemod::Move::power() const +int Sigmod::Move::power() const { return m_power; } -int Pokemod::Move::type() const +int Sigmod::Move::type() const { return m_type; } -bool Pokemod::Move::special() const +bool Sigmod::Move::special() const { return m_special; } -int Pokemod::Move::powerPoints() const +int Sigmod::Move::powerPoints() const { return m_powerPoints; } -int Pokemod::Move::priority() const +int Sigmod::Move::priority() const { return m_priority; } -QString Pokemod::Move::description() const +QString Sigmod::Move::description() const { return m_description; } -Pokemod::Script Pokemod::Move::battleScript() const +Sigmod::Script Sigmod::Move::battleScript() const { return m_battleScript; } -Pokemod::Script Pokemod::Move::worldScript() const +Sigmod::Script Sigmod::Move::worldScript() const { return m_worldScript; } -Pokemod::Move& Pokemod::Move::operator=(const Move& rhs) +Sigmod::Move& Sigmod::Move::operator=(const Move& rhs) { if (this == &rhs) return *this; |