diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-29 01:18:47 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-29 01:18:47 +0000 |
commit | 40d6f3579a23c50a5570de3f511a407924703ec1 (patch) | |
tree | deba50e4749e2bcdf3bb7ff7bb2aa57ab1121178 /pokemod/Ability.h | |
parent | 72e08e3222064d72d7a6f1bf9fcb294b22569c06 (diff) | |
download | sigen-40d6f3579a23c50a5570de3f511a407924703ec1.tar.gz sigen-40d6f3579a23c50a5570de3f511a407924703ec1.tar.xz sigen-40d6f3579a23c50a5570de3f511a407924703ec1.zip |
[FIX] Less repetative code in pokemod
[FIX] clear is no longer inline
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@115 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Ability.h')
-rw-r--r-- | pokemod/Ability.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pokemod/Ability.h b/pokemod/Ability.h index 6a845dc4..827befc3 100644 --- a/pokemod/Ability.h +++ b/pokemod/Ability.h @@ -61,12 +61,11 @@ class Ability : public Object Ability& operator=(const Ability& rhs); private: bool validate() const; + int effectId() const; - void clear() - { - while (effectCount()) - deleteEffect(0); - } + AbilityEffect* newEffect(AbilityEffect* effect); + + void clear(); QString m_name; QList<AbilityEffect*> m_effects; |