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/MapWarp.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pokemod/MapWarp.cpp') 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]; } -- cgit