diff options
Diffstat (limited to 'pokemod/MapWarp.cpp')
| -rw-r--r-- | pokemod/MapWarp.cpp | 22 |
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]; } |
