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/Item.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/Item.cpp')
| -rw-r--r-- | pokemod/Item.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |
