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/MapWildList.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'pokemod/MapWildList.cpp') diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp index b55e06c2..f4523983 100644 --- a/pokemod/MapWildList.cpp +++ b/pokemod/MapWildList.cpp @@ -34,7 +34,7 @@ const QStringList MapWildList::ControlStr = QStringList() << "Grass" << "Surfing" << "Fishing" << "Dive" << "Headbutt" << "Rock Smash"; MapWildList::MapWildList(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("MapWildList", par, _id), control(UINT_MAX), value(INT_MAX), scope(INT_MAX) @@ -42,13 +42,13 @@ MapWildList::MapWildList(const Pokemod& par, const unsigned _id) : } MapWildList::MapWildList(const Pokemod& par, const MapWildList& w, const unsigned _id) : - Object(par, _id) + Object("MapWildList", par, _id) { *this = w; } MapWildList::MapWildList(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("MapWildList", par, _id) { load(fname, _id); } @@ -174,7 +174,7 @@ void MapWildList::save(const QString& map) const throw(Exception) void MapWildList::setControl(const unsigned c) throw(BoundsException) { if (End <= c) - throw(BoundsException("MapWildList", "control")); + throw(BoundsException(className, "control")); control = c; } @@ -190,13 +190,13 @@ void MapWildList::setTime(const unsigned ts, const bool t) throw(Exception) if (i.next() == ts) { if (t) - throw(Exception("MapWildList", "time already used")); + throw(Exception(className, "time already used")); else i.remove(); } } if (!t) - throw(Exception("MapWildList", "time wasn\'t being used anyway")); + throw(Exception(className, "time wasn\'t being used anyway")); times.append(ts); } @@ -233,14 +233,14 @@ int MapWildList::getScope() const const MapWildListEncounter& MapWildList::getEncounter(const unsigned i) const throw(IndexException) { if (getEncounterCount() <= i) - throw(IndexException("MapWildList")); + throw(IndexException(className)); return encounters.at(i); } MapWildListEncounter& MapWildList::getEncounter(const unsigned i) throw(IndexException) { if (getEncounterCount() <= i) - throw(IndexException("MapWildList")); + throw(IndexException(className)); return encounters[i]; } @@ -290,7 +290,7 @@ MapWildListEncounter& MapWildList::newEncounter(const MapWildListEncounter& p) void MapWildList::deleteEncounter(const unsigned i) throw(IndexException) { if (getEncounterCount() <= i) - throw(IndexException("MapWildList")); + throw(IndexException(className)); encounters.removeAt(i); } -- cgit