summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWildList.cpp
diff options
context:
space:
mode:
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);
}