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/CoinListObject.cpp | |
| parent | efa80ce427e40070e36e5ab86d2f6dbf4ad50648 (diff) | |
| download | sigen-ef250617e8163c535931be045aa4e9d59163ace7.tar.gz sigen-ef250617e8163c535931be045aa4e9d59163ace7.tar.xz sigen-ef250617e8163c535931be045aa4e9d59163ace7.zip | |
[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/CoinListObject.cpp')
| -rw-r--r-- | pokemod/CoinListObject.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index fcc4579a..f3c48388 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -26,7 +26,7 @@ const QStringList CoinListObject::TypeStr = QStringList() << "Item" << "Pokémon"; CoinListObject::CoinListObject(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("CoinListObject", par, _id), type(Item), object(UINT_MAX), amount(1), @@ -35,13 +35,13 @@ CoinListObject::CoinListObject(const Pokemod& par, const unsigned _id) : } CoinListObject::CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id) : - Object(par, _id) + Object("CoinListObject", par, _id) { *this = o; } CoinListObject::CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("CoinListObject", par, _id) { load(fname, _id); } @@ -106,7 +106,7 @@ void CoinListObject::save(const QString& coinList) const throw(Exception) void CoinListObject::setType(const unsigned t) throw(BoundsException) { if (End <= t) - throw(BoundsException("CoinListObject", "type")); + throw(BoundsException(className, "type")); type = t; object = UINT_MAX; } @@ -114,14 +114,14 @@ void CoinListObject::setType(const unsigned t) throw(BoundsException) void CoinListObject::setObject(const unsigned o) throw(BoundsException) { if (((type == Item) && (pokemod.getItemIndex(object) == UINT_MAX)) || ((type == Pokemon) && (pokemod.getSpeciesIndex(object) == UINT_MAX))) - throw(BoundsException("CoinListObject", "object")); + throw(BoundsException(className, "object")); object = o; } void CoinListObject::setAmount(const unsigned a) throw(BoundsException) { if (!a) - throw(BoundsException("CoinListObject", "amount")); + throw(BoundsException(className, "amount")); amount = a; } |
