diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemod/SpeciesMove.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
| download | sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.gz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.xz sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.zip | |
[FIX] All modules now use their own namespace
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/SpeciesMove.cpp')
| -rw-r--r-- | pokemod/SpeciesMove.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pokemod/SpeciesMove.cpp b/pokemod/SpeciesMove.cpp index 89c10445..e914b2eb 100644 --- a/pokemod/SpeciesMove.cpp +++ b/pokemod/SpeciesMove.cpp @@ -23,13 +23,13 @@ #include "Rules.h" #include "Species.h" -SpeciesMove::SpeciesMove(const SpeciesMove& move) : +Pokemod::SpeciesMove::SpeciesMove(const SpeciesMove& move) : Object("SpeciesMove", move.parent(), move.id()) { *this = move; } -SpeciesMove::SpeciesMove(const Species* parent, const int id) : +Pokemod::SpeciesMove::SpeciesMove(const Species* parent, const int id) : Object("SpeciesMove", parent, id), m_move(INT_MAX), m_level(0), @@ -37,26 +37,26 @@ SpeciesMove::SpeciesMove(const Species* parent, const int id) : { } -SpeciesMove::SpeciesMove(const SpeciesMove& move, const Species* parent, const int id) : +Pokemod::SpeciesMove::SpeciesMove(const SpeciesMove& move, const Species* parent, const int id) : Object("SpeciesMove", parent, id) { *this = move; } -SpeciesMove::SpeciesMove(const QDomElement& xml, const Species* parent, const int id) : +Pokemod::SpeciesMove::SpeciesMove(const QDomElement& xml, const Species* parent, const int id) : Object("SpeciesMove", parent, id) { load(xml, id); } -void SpeciesMove::validate() +void Pokemod::SpeciesMove::validate() { TEST(setMove, move); TEST(setLevel, level); TEST(setWild, wild); } -void SpeciesMove::load(const QDomElement& xml, int id) +void Pokemod::SpeciesMove::load(const QDomElement& xml, int id) { LOAD_ID(); LOAD(int, move); @@ -64,7 +64,7 @@ void SpeciesMove::load(const QDomElement& xml, int id) LOAD(int, wild); } -QDomElement SpeciesMove::save() const +QDomElement Pokemod::SpeciesMove::save() const { SAVE_CREATE(); SAVE(int, move); @@ -73,7 +73,7 @@ QDomElement SpeciesMove::save() const return xml; } -void SpeciesMove::setMove(const int move) +void Pokemod::SpeciesMove::setMove(const int move) { if (static_cast<const Pokemod*>(pokemod())->moveIndex(move) == INT_MAX) { @@ -83,7 +83,7 @@ void SpeciesMove::setMove(const int move) CHECK(move); } -void SpeciesMove::setLevel(const int level) +void Pokemod::SpeciesMove::setLevel(const int level) { if (static_cast<const Pokemod*>(pokemod())->rules()->maxLevel() <= level) { @@ -93,7 +93,7 @@ void SpeciesMove::setLevel(const int level) CHECK(level); } -void SpeciesMove::setWild(const int wild) +void Pokemod::SpeciesMove::setWild(const int wild) { if (static_cast<const Pokemod*>(pokemod())->rules()->maxLevel() <= wild) { @@ -103,22 +103,22 @@ void SpeciesMove::setWild(const int wild) CHECK(wild); } -int SpeciesMove::move() const +int Pokemod::SpeciesMove::move() const { return m_move; } -int SpeciesMove::level() const +int Pokemod::SpeciesMove::level() const { return m_level; } -int SpeciesMove::wild() const +int Pokemod::SpeciesMove::wild() const { return m_wild; } -SpeciesMove& SpeciesMove::operator=(const SpeciesMove& rhs) +Pokemod::SpeciesMove& Pokemod::SpeciesMove::operator=(const SpeciesMove& rhs) { if (this == &rhs) return *this; |
