summaryrefslogtreecommitdiffstats
path: root/pokemod/Ability.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Ability.cpp')
-rw-r--r--pokemod/Ability.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/Ability.cpp b/pokemod/Ability.cpp
index 9e8b89bd..e3bdb8b6 100644
--- a/pokemod/Ability.cpp
+++ b/pokemod/Ability.cpp
@@ -31,19 +31,19 @@
#include "Ability.h"
Ability::Ability(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("Ability", par, _id),
name("")
{
}
Ability::Ability(const Pokemod& par, const Ability& a, const unsigned _id) :
- Object(par, _id)
+ Object("Ability", par, _id)
{
*this = a;
}
Ability::Ability(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("Ability", par, _id)
{
load(fname, _id);
}
@@ -133,14 +133,14 @@ QString Ability::getName() const
const AbilityEffect& Ability::getEffect(const unsigned i) const throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Ability"));
+ throw(IndexException(className));
return effects.at(i);
}
AbilityEffect& Ability::getEffect(const unsigned i) throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Ability"));
+ throw(IndexException(className));
return effects[i];
}
@@ -190,7 +190,7 @@ AbilityEffect& Ability::newEffect(const AbilityEffect& e)
void Ability::deleteEffect(const unsigned i) throw(IndexException)
{
if (getEffectCount() <= i)
- throw(IndexException("Ability"));
+ throw(IndexException(className));
effects.removeAt(i);
}