From ef250617e8163c535931be045aa4e9d59163ace7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 23 Jan 2008 04:50:24 +0000 Subject: [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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Nature.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pokemod/Nature.cpp') 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]; } -- cgit