summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWildList.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
commitef250617e8163c535931be045aa4e9d59163ace7 (patch)
tree5b76323ec66a63c3fca589b088b310c3fdaba2b7 /pokemod/MapWildList.cpp
parentefa80ce427e40070e36e5ab86d2f6dbf4ad50648 (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/MapWildList.cpp')
-rw-r--r--pokemod/MapWildList.cpp18
1 files changed, 9 insertions, 9 deletions
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);
}