summaryrefslogtreecommitdiffstats
path: root/pokemod/MapEffect.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/MapEffect.cpp
parentefa80ce427e40070e36e5ab86d2f6dbf4ad50648 (diff)
downloadsigen-ef250617e8163c535931be045aa4e9d59163ace7.tar.gz
sigen-ef250617e8163c535931be045aa4e9d59163ace7.tar.xz
sigen-ef250617e8163c535931be045aa4e9d59163ace7.zip
[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/MapEffect.cpp')
-rw-r--r--pokemod/MapEffect.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp
index df59f432..e731a2af 100644
--- a/pokemod/MapEffect.cpp
+++ b/pokemod/MapEffect.cpp
@@ -28,7 +28,7 @@ const QStringList MapEffect::MapEffectStr = QStringList() << "Item" << "PC" << "
const QStringList MapEffect::PCTypeStr = QStringList() << "Item" << "Pokémon" << "PokéDex" << "Hall of Fame" << "All";
MapEffect::MapEffect(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("MapEffect", par, _id),
name(""),
coordinate(0, 0),
existFlag(0, 0),
@@ -44,13 +44,13 @@ MapEffect::MapEffect(const Pokemod& par, const unsigned _id) :
}
MapEffect::MapEffect(const Pokemod& par, const MapEffect& e, const unsigned _id) :
- Object(par, _id)
+ Object("MapEffect", par, _id)
{
*this = e;
}
MapEffect::MapEffect(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("MapEffect", par, _id)
{
load(fname, _id);
}
@@ -201,14 +201,14 @@ void MapEffect::setExistFlagStatus(const unsigned s)
void MapEffect::setSkin(const QString& s) throw(Exception)
{
if (!QFile::exists(QString("%1/image/skin/%2.png").arg(pokemod.getPath()).arg(s)))
- throw(Exception("MapEffect", "skin does not exist"));
+ throw(Exception(className, "skin does not exist"));
skin = s;
}
void MapEffect::setEffect(const unsigned e) throw(BoundsException)
{
if (E_End <= e)
- throw(BoundsException("MapEffect", "effect"));
+ throw(BoundsException(className, "effect"));
effect = e;
val1 = UINT_MAX;
val2 = UINT_MAX;
@@ -217,7 +217,7 @@ void MapEffect::setEffect(const unsigned e) throw(BoundsException)
void MapEffect::setVal1(const unsigned v1) throw(UnusedException)
{
if ((effect != E_StrengthBlock) && (effect != E_Button))
- throw(UnusedException("MapEffect", "val1"));
+ throw(UnusedException(className, "val1"));
val1 = v1;
}
@@ -227,19 +227,19 @@ void MapEffect::setVal2(const unsigned v2) throw(Exception)
{
case E_Item:
if (pokemod.getItemIndex(val2) == UINT_MAX)
- throw(BoundsException("MapEffect", "val2"));
+ throw(BoundsException(className, "val2"));
break;
case E_PC:
if (PC_End <= val2)
- throw(BoundsException("MapEffect", "val2"));
+ throw(BoundsException(className, "val2"));
break;
case E_StrengthBlock:
case E_Button:
if (Flag::End <= val2)
- throw(BoundsException("MapEffect", "val2"));
+ throw(BoundsException(className, "val2"));
break;
default:
- throw(UnusedException("MapEffect", "val2"));
+ throw(UnusedException(className, "val2"));
break;
}
val2 = v2;
@@ -248,7 +248,7 @@ void MapEffect::setVal2(const unsigned v2) throw(Exception)
void MapEffect::setDirection(const unsigned d) throw(BoundsException)
{
if (D_End_None <= d)
- throw(BoundsException("MapEffect", "direction"));
+ throw(BoundsException(className, "direction"));
direction = d;
}
@@ -265,7 +265,7 @@ void MapEffect::setCanMove(const bool c)
void MapEffect::setDialog(const unsigned d) throw(BoundsException)
{
if (pokemod.getDialogIndex(d) == UINT_MAX)
- throw(BoundsException("MapEffect", "dialog"));
+ throw(BoundsException(className, "dialog"));
dialog = d;
}