diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
commit | a1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch) | |
tree | f61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/MapWarp.cpp | |
parent | 342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff) | |
download | sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.gz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.xz sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.zip |
[FIX] PokeMod namespace removed
[ADD] MoveEffect editing form for PokéModr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MapWarp.cpp')
-rw-r--r-- | pokemod/MapWarp.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/pokemod/MapWarp.cpp b/pokemod/MapWarp.cpp index dc48c64e..733b66c5 100644 --- a/pokemod/MapWarp.cpp +++ b/pokemod/MapWarp.cpp @@ -25,9 +25,9 @@ #include "Map.h" #include "MapWarp.h" -const QStringList PokeMod::MapWarp::TypeStr = QStringList() << "Door/Stair" << "Warp Pad" << "Hole" << "Boundary"; +const QStringList MapWarp::TypeStr = QStringList() << "Door/Stair" << "Warp Pad" << "Hole" << "Boundary"; -PokeMod::MapWarp::MapWarp(const Pokemod& par, const unsigned _id) : +MapWarp::MapWarp(const Pokemod& par, const unsigned _id) : Object(par, _id), name(""), coordinate(0, 0), @@ -45,19 +45,19 @@ PokeMod::MapWarp::MapWarp(const Pokemod& par, const unsigned _id) : from[i] = false; } -PokeMod::MapWarp::MapWarp(const Pokemod& par, const MapWarp& w, const unsigned _id) : +MapWarp::MapWarp(const Pokemod& par, const MapWarp& w, const unsigned _id) : Object(par, _id) { *this = w; } -PokeMod::MapWarp::MapWarp(const Pokemod& par, const QString& fname, const unsigned _id) : +MapWarp::MapWarp(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeMod::MapWarp::validate() const +bool MapWarp::validate() const { bool valid = true; pokemod.validationMsg(QString("------Warp \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg); @@ -102,7 +102,7 @@ bool PokeMod::MapWarp::validate() const return valid; } -void PokeMod::MapWarp::load(const QString& fname, const unsigned _id) throw(Exception) +void MapWarp::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -132,7 +132,7 @@ void PokeMod::MapWarp::load(const QString& fname, const unsigned _id) throw(Exce ini.getValue("dialog", dialog); } -void PokeMod::MapWarp::save(const QString& map) const throw(Exception) +void MapWarp::save(const QString& map) const throw(Exception) { Ini ini; ini.addField("id", id); @@ -155,63 +155,63 @@ void PokeMod::MapWarp::save(const QString& map) const throw(Exception) ini.save(QString("%1/map/%2/warp/%3.pini").arg(pokemod.getPath()).arg(map).arg(name)); } -void PokeMod::MapWarp::setName(const QString& n) +void MapWarp::setName(const QString& n) { name = n; } -void PokeMod::MapWarp::setCoordinate(const unsigned x, const unsigned y) +void MapWarp::setCoordinate(const unsigned x, const unsigned y) { coordinate.set(x, y); } -void PokeMod::MapWarp::setCoordinateX(const unsigned x) +void MapWarp::setCoordinateX(const unsigned x) { coordinate.setX(x); } -void PokeMod::MapWarp::setCoordinateY(const unsigned y) +void MapWarp::setCoordinateY(const unsigned y) { coordinate.setY(y); } -void PokeMod::MapWarp::setFrom(const unsigned d, const bool f) throw(BoundsException) +void MapWarp::setFrom(const unsigned d, const bool f) throw(BoundsException) { if (D_End <= d) throw(BoundsException("MapWarp", "direction")); from[d] = f; } -void PokeMod::MapWarp::setDirectionOut(const unsigned d) throw(BoundsException) +void MapWarp::setDirectionOut(const unsigned d) throw(BoundsException) { if (D_End <= d) throw(BoundsException("MapWarp", "direction")); directionOut = d; } -void PokeMod::MapWarp::setWarpType(const unsigned w) throw(BoundsException) +void MapWarp::setWarpType(const unsigned w) throw(BoundsException) { if (End <= w) throw(BoundsException("MapWarp", "warpType")); warpType = w; } -void PokeMod::MapWarp::setIsBiking(const bool i) +void MapWarp::setIsBiking(const bool i) { isBiking = i; } -void PokeMod::MapWarp::setIsFlash(const bool i) +void MapWarp::setIsFlash(const bool i) { isFlash = i; } -void PokeMod::MapWarp::setIsFoggy(const bool i) +void MapWarp::setIsFoggy(const bool i) { isFoggy = i; } -void PokeMod::MapWarp::setToMap(const unsigned t) throw(BoundsException) +void MapWarp::setToMap(const unsigned t) throw(BoundsException) { if (pokemod.getMapIndex(t) == UINT_MAX) throw(BoundsException("MapWarp", "toMap")); @@ -219,7 +219,7 @@ void PokeMod::MapWarp::setToMap(const unsigned t) throw(BoundsException) toWarp = UINT_MAX; } -void PokeMod::MapWarp::setToWarp(const unsigned t) throw(BoundsException) +void MapWarp::setToWarp(const unsigned t) throw(BoundsException) { if (pokemod.getMapIndex(toMap) == UINT_MAX) throw(BoundsException("MapWarp", "toMap")); @@ -227,91 +227,91 @@ void PokeMod::MapWarp::setToWarp(const unsigned t) throw(BoundsException) throw(BoundsException("MapWarp", "toWarp")); } -void PokeMod::MapWarp::setWorkingFlag(const unsigned f, const unsigned s) +void MapWarp::setWorkingFlag(const unsigned f, const unsigned s) { workingFlag.set(f, s); } -void PokeMod::MapWarp::setWorkingFlagFlag(const unsigned f) +void MapWarp::setWorkingFlagFlag(const unsigned f) { workingFlag.setFlag(f); } -void PokeMod::MapWarp::setWorkingFlagStatus(const unsigned s) +void MapWarp::setWorkingFlagStatus(const unsigned s) { workingFlag.setStatus(s); } -void PokeMod::MapWarp::setDialog(const unsigned d) throw(BoundsException) +void MapWarp::setDialog(const unsigned d) throw(BoundsException) { if (pokemod.getDialogIndex(d) == UINT_MAX) throw(BoundsException("MapWarp", "dialog")); dialog = d; } -QString PokeMod::MapWarp::getName() const +QString MapWarp::getName() const { return name; } -Point PokeMod::MapWarp::getCoordinate() const +Point MapWarp::getCoordinate() const { return coordinate; } -bool PokeMod::MapWarp::getFrom(const unsigned d) const throw(BoundsException) +bool MapWarp::getFrom(const unsigned d) const throw(BoundsException) { if (D_End <= d) throw(BoundsException("MapWarp", "direction")); return from[d]; } -unsigned PokeMod::MapWarp::getDirectionOut() const +unsigned MapWarp::getDirectionOut() const { return directionOut; } -unsigned PokeMod::MapWarp::getWarpType() const +unsigned MapWarp::getWarpType() const { return warpType; } -bool PokeMod::MapWarp::getIsBiking() const +bool MapWarp::getIsBiking() const { return isBiking; } -bool PokeMod::MapWarp::getIsFlash() const +bool MapWarp::getIsFlash() const { return isFlash; } -bool PokeMod::MapWarp::getIsFoggy() const +bool MapWarp::getIsFoggy() const { return isFoggy; } -unsigned PokeMod::MapWarp::getToMap() const +unsigned MapWarp::getToMap() const { return toMap; } -unsigned PokeMod::MapWarp::getToWarp() const +unsigned MapWarp::getToWarp() const { return toWarp; } -Flag PokeMod::MapWarp::getWorkingFlag() const +Flag MapWarp::getWorkingFlag() const { return workingFlag; } -unsigned PokeMod::MapWarp::getDialog() const +unsigned MapWarp::getDialog() const { return dialog; } -PokeMod::MapWarp& PokeMod::MapWarp::operator=(const MapWarp& rhs) +MapWarp& MapWarp::operator=(const MapWarp& rhs) { if (this == &rhs) return *this; |