diff options
Diffstat (limited to 'pokemod/Nature.cpp')
| -rw-r--r-- | pokemod/Nature.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pokemod/Nature.cpp b/pokemod/Nature.cpp index 1c6fc06d..b2e93227 100644 --- a/pokemod/Nature.cpp +++ b/pokemod/Nature.cpp @@ -25,7 +25,7 @@ #include "Nature.h" Nature::Nature(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("Nature", par, _id), name(""), weight(1) { @@ -34,13 +34,13 @@ Nature::Nature(const Pokemod& par, const unsigned _id) : } Nature::Nature(const Pokemod& par, const Nature& n, const unsigned _id) : - Object(par, _id) + Object("Nature", par, _id) { *this = n; } Nature::Nature(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("Nature", par, _id) { load(fname, _id); } @@ -102,28 +102,28 @@ void Nature::setName(const QString& n) void Nature::setStat(const unsigned s, const unsigned n, const unsigned d) throw(Exception) { if ((pokemod.getRules().getSpecialSplit() ? ST_End_GSC : ST_End_RBY) <= s) - throw(BoundsException("Nature", "stat")); + throw(BoundsException(className, "stat")); stats[s].set(n, d); } void Nature::setStatNum(const unsigned s, const unsigned n) throw(Exception) { if ((pokemod.getRules().getSpecialSplit() ? ST_End_GSC : ST_End_RBY) <= s) - throw(BoundsException("Nature", "stat")); + throw(BoundsException(className, "stat")); stats[s].setNum(n); } void Nature::setStatDenom(const unsigned s, const unsigned d) throw(Exception) { if ((pokemod.getRules().getSpecialSplit() ? ST_End_GSC : ST_End_RBY) <= s) - throw(BoundsException("Nature", "stat")); + throw(BoundsException(className, "stat")); stats[s].setDenom(d); } void Nature::setWeight(const unsigned w) throw(BoundsException) { if (!w) - throw(BoundsException("Nature", "weight")); + throw(BoundsException(className, "weight")); weight = w; } @@ -135,7 +135,7 @@ QString Nature::getName() const Frac Nature::getStat(const unsigned s) const throw(BoundsException) { if ((pokemod.getRules().getSpecialSplit() ? ST_End_GSC : ST_End_RBY) <= s) - throw(BoundsException("Nature", "stat")); + throw(BoundsException(className, "stat")); return stats[s]; } |
