summaryrefslogtreecommitdiffstats
path: root/pokemod/Move.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/Move.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/Move.cpp')
-rw-r--r--pokemod/Move.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/pokemod/Move.cpp b/pokemod/Move.cpp
index 326a0368..bcea9c7f 100644
--- a/pokemod/Move.cpp
+++ b/pokemod/Move.cpp
@@ -32,7 +32,7 @@ const QStringList Move::TargetStr = QStringList() << "Player" << "Enemy" << "Bot
const QStringList Move::ChoiceStr = QStringList() << "Player" << "Enemy" << "Random";
Move::Move(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("Move", par, _id),
name(""),
accuracy(1, 1),
power(0),
@@ -51,13 +51,13 @@ Move::Move(const Pokemod& par, const unsigned _id) :
}
Move::Move(const Pokemod& par, const Move& m, const unsigned _id) :
- Object(par, _id)
+ Object("Move", par, _id)
{
*this = m;
}
Move::Move(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("Move", par, _id)
{
load(fname, _id);
}
@@ -215,7 +215,7 @@ void Move::setAccuracyDenom(const unsigned d) throw(Exception)
void Move::setType(const unsigned t) throw(BoundsException)
{
if (pokemod.getTypeIndex(t) == UINT_MAX)
- throw(BoundsException("Move", "type"));
+ throw(BoundsException(className, "type"));
type = t;
}
@@ -227,28 +227,28 @@ void Move::setSpecial(const bool s)
void Move::setPowerPoints(const unsigned p) throw(BoundsException)
{
if (!p)
- throw(BoundsException("Move", "powerPoints"));
+ throw(BoundsException(className, "powerPoints"));
powerPoints = p;
}
void Move::setTarget(const unsigned t) throw(BoundsException)
{
if (T_End <= t)
- throw(BoundsException("Move", "target"));
+ throw(BoundsException(className, "target"));
target = t;
}
void Move::setNumTargets(const unsigned n) throw(BoundsException)
{
if (!n || ((pokemod.getRules().getMaxFight() << 1) < n))
- throw(BoundsException("Move", "numTargets"));
+ throw(BoundsException(className, "numTargets"));
numTargets = n;
}
void Move::setTargetChoice(const unsigned t) throw(BoundsException)
{
if (C_End <= t)
- throw(BoundsException("Move", "targetChoice"));
+ throw(BoundsException(className, "targetChoice"));
targetChoice = t;
}
@@ -350,14 +350,14 @@ QString Move::getDescription() const
const MoveEffect& Move::getEffect(const unsigned i) const throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Move"));
+ throw(IndexException(className));
return effects.at(i);
}
MoveEffect& Move::getEffect(const unsigned i) throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Move"));
+ throw(IndexException(className));
return effects[i];
}
@@ -407,7 +407,7 @@ MoveEffect& Move::newEffect(const MoveEffect& e)
void Move::deleteEffect(const unsigned i) throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Move"));
+ throw(IndexException(className));
effects.removeAt(i);
}