summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWarp.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/MapWarp.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/MapWarp.cpp')
-rw-r--r--pokemod/MapWarp.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/pokemod/MapWarp.cpp b/pokemod/MapWarp.cpp
index 733b66c5..315f92a6 100644
--- a/pokemod/MapWarp.cpp
+++ b/pokemod/MapWarp.cpp
@@ -28,7 +28,7 @@
const QStringList MapWarp::TypeStr = QStringList() << "Door/Stair" << "Warp Pad" << "Hole" << "Boundary";
MapWarp::MapWarp(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("MapWarp", par, _id),
name(""),
coordinate(0, 0),
directionOut(UINT_MAX),
@@ -46,13 +46,13 @@ MapWarp::MapWarp(const Pokemod& par, const unsigned _id) :
}
MapWarp::MapWarp(const Pokemod& par, const MapWarp& w, const unsigned _id) :
- Object(par, _id)
+ Object("MapWarp", par, _id)
{
*this = w;
}
MapWarp::MapWarp(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("MapWarp", par, _id)
{
load(fname, _id);
}
@@ -178,21 +178,21 @@ void MapWarp::setCoordinateY(const unsigned y)
void MapWarp::setFrom(const unsigned d, const bool f) throw(BoundsException)
{
if (D_End <= d)
- throw(BoundsException("MapWarp", "direction"));
+ throw(BoundsException(className, "direction"));
from[d] = f;
}
void MapWarp::setDirectionOut(const unsigned d) throw(BoundsException)
{
if (D_End <= d)
- throw(BoundsException("MapWarp", "direction"));
+ throw(BoundsException(className, "direction"));
directionOut = d;
}
void MapWarp::setWarpType(const unsigned w) throw(BoundsException)
{
if (End <= w)
- throw(BoundsException("MapWarp", "warpType"));
+ throw(BoundsException(className, "warpType"));
warpType = w;
}
@@ -214,7 +214,7 @@ void MapWarp::setIsFoggy(const bool i)
void MapWarp::setToMap(const unsigned t) throw(BoundsException)
{
if (pokemod.getMapIndex(t) == UINT_MAX)
- throw(BoundsException("MapWarp", "toMap"));
+ throw(BoundsException(className, "toMap"));
toMap = t;
toWarp = UINT_MAX;
}
@@ -222,9 +222,9 @@ void MapWarp::setToMap(const unsigned t) throw(BoundsException)
void MapWarp::setToWarp(const unsigned t) throw(BoundsException)
{
if (pokemod.getMapIndex(toMap) == UINT_MAX)
- throw(BoundsException("MapWarp", "toMap"));
+ throw(BoundsException(className, "toMap"));
if (pokemod.getMapByID(toMap).getWarpIndex(t) == UINT_MAX)
- throw(BoundsException("MapWarp", "toWarp"));
+ throw(BoundsException(className, "toWarp"));
}
void MapWarp::setWorkingFlag(const unsigned f, const unsigned s)
@@ -245,7 +245,7 @@ void MapWarp::setWorkingFlagStatus(const unsigned s)
void MapWarp::setDialog(const unsigned d) throw(BoundsException)
{
if (pokemod.getDialogIndex(d) == UINT_MAX)
- throw(BoundsException("MapWarp", "dialog"));
+ throw(BoundsException(className, "dialog"));
dialog = d;
}
@@ -262,7 +262,7 @@ Point MapWarp::getCoordinate() const
bool MapWarp::getFrom(const unsigned d) const throw(BoundsException)
{
if (D_End <= d)
- throw(BoundsException("MapWarp", "direction"));
+ throw(BoundsException(className, "direction"));
return from[d];
}