diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
| commit | a1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch) | |
| tree | f61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/SpeciesMove.cpp | |
| parent | 342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff) | |
| download | sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.gz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.xz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.zip | |
[FIX] PokeMod namespace removed
[ADD] MoveEffect editing form for PokéModr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/SpeciesMove.cpp')
| -rw-r--r-- | pokemod/SpeciesMove.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/SpeciesMove.cpp b/pokemod/SpeciesMove.cpp index da6d7dd9..aad8efad 100644 --- a/pokemod/SpeciesMove.cpp +++ b/pokemod/SpeciesMove.cpp @@ -23,7 +23,7 @@ #include "Pokemod.h" #include "SpeciesMove.h" -PokeMod::SpeciesMove::SpeciesMove(const Pokemod& par, const unsigned _id) : +SpeciesMove::SpeciesMove(const Pokemod& par, const unsigned _id) : Object(par, _id), move(UINT_MAX), level(0), @@ -31,19 +31,19 @@ PokeMod::SpeciesMove::SpeciesMove(const Pokemod& par, const unsigned _id) : { } -PokeMod::SpeciesMove::SpeciesMove(const Pokemod& par, const SpeciesMove& m, const unsigned _id) : +SpeciesMove::SpeciesMove(const Pokemod& par, const SpeciesMove& m, const unsigned _id) : Object(par, _id) { *this = m; } -PokeMod::SpeciesMove::SpeciesMove(const Pokemod& par, const QString& fname, const unsigned _id) : +SpeciesMove::SpeciesMove(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeMod::SpeciesMove::validate() const +bool SpeciesMove::validate() const { bool valid = true; pokemod.validationMsg(QString("------Move with id %1---").arg(id), Pokemod::V_Msg); @@ -65,7 +65,7 @@ bool PokeMod::SpeciesMove::validate() const return valid; } -void PokeMod::SpeciesMove::load(const QString& fname, const unsigned _id) throw(Exception) +void SpeciesMove::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -77,7 +77,7 @@ void PokeMod::SpeciesMove::load(const QString& fname, const unsigned _id) throw( ini.getValue("wild", wild, 0); } -void PokeMod::SpeciesMove::save(const QString& species) const throw(Exception) +void SpeciesMove::save(const QString& species) const throw(Exception) { Ini ini; ini.addField("id", id); @@ -87,43 +87,43 @@ void PokeMod::SpeciesMove::save(const QString& species) const throw(Exception) ini.save(QString("%1/species/%2/move/%3.pini").arg(pokemod.getPath()).arg(species).arg(id)); } -void PokeMod::SpeciesMove::setMove(const unsigned m) throw(BoundsException) +void SpeciesMove::setMove(const unsigned m) throw(BoundsException) { if (pokemod.getMoveIndex(m) == UINT_MAX) throw(BoundsException("SpeciesMove", "move")); move = m; } -void PokeMod::SpeciesMove::setLevel(const unsigned l) throw(BoundsException) +void SpeciesMove::setLevel(const unsigned l) throw(BoundsException) { if (pokemod.getRules().getMaxLevel() <= l) throw(BoundsException("SpeciesMove", "level")); level = l; } -void PokeMod::SpeciesMove::setWild(const unsigned w) throw(BoundsException) +void SpeciesMove::setWild(const unsigned w) throw(BoundsException) { if (pokemod.getRules().getMaxLevel() <= w) throw(BoundsException("SpeciesMove", "wild")); wild = w; } -unsigned PokeMod::SpeciesMove::getMove() const +unsigned SpeciesMove::getMove() const { return move; } -unsigned PokeMod::SpeciesMove::getLevel() const +unsigned SpeciesMove::getLevel() const { return level; } -unsigned PokeMod::SpeciesMove::getWild() const +unsigned SpeciesMove::getWild() const { return wild; } -PokeMod::SpeciesMove& PokeMod::SpeciesMove::operator=(const SpeciesMove& rhs) +SpeciesMove& SpeciesMove::operator=(const SpeciesMove& rhs) { if (this == &rhs) return *this; |
