diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-23 04:50:24 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-23 04:50:24 +0000 |
| commit | ef250617e8163c535931be045aa4e9d59163ace7 (patch) | |
| tree | 5b76323ec66a63c3fca589b088b310c3fdaba2b7 /pokemod/Nature.cpp | |
| parent | efa80ce427e40070e36e5ab86d2f6dbf4ad50648 (diff) | |
[FIX] Grammer in Changelog
[FIX] Made pokemod classes contain their names for later ease
[ADD] PokéModr main window form
[FIX] Ini and Exception includes fixed
[FIX] BugCatcher bugs fixed
[FIX] .pro files fixed
[ADD] PokéModr main GUI almost complete
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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]; } |
