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/Item.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pokemod/Item.cpp') diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp index 43e7066b..57bba3eb 100644 --- a/pokemod/Item.cpp +++ b/pokemod/Item.cpp @@ -30,7 +30,7 @@ #include "Item.h" Item::Item(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("Item", par, _id), name(""), sellable(false), type(UINT_MAX), @@ -40,13 +40,13 @@ Item::Item(const Pokemod& par, const unsigned _id) : } Item::Item(const Pokemod& par, const Item& i, const unsigned _id) : - Object(par, _id) + Object("Item", par, _id) { *this = i; } Item::Item(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("Item", par, _id) { load(fname, _id); } @@ -149,7 +149,7 @@ void Item::setSellable(const bool s) void Item::setType(const unsigned t) throw(BoundsException) { if (pokemod.getItemTypeIndex(t) == UINT_MAX) - throw(BoundsException("Item", "type")); + throw(BoundsException(className, "type")); type = t; } @@ -191,14 +191,14 @@ QString Item::getDescription() const const ItemEffect& Item::getEffect(const unsigned i) const throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); return effects.at(i); } ItemEffect& Item::getEffectByID(const unsigned i) throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); return effects[i]; } @@ -248,7 +248,7 @@ ItemEffect& Item::newEffect(const ItemEffect& e) void Item::deleteEffect(const unsigned i) throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); effects.removeAt(i); } -- cgit