diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-30 01:37:51 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-30 01:37:51 +0000 |
| commit | a423cf3db8fa90cc09d2f92ff892e4fcdda4af16 (patch) | |
| tree | 174b821adc5e089a313657499e0df740d7184fca /pokemod/Ability.cpp | |
| parent | 300e44b68e075d7fd78287e10262b0d502f4898d (diff) | |
| download | sigen-a423cf3db8fa90cc09d2f92ff892e4fcdda4af16.tar.gz sigen-a423cf3db8fa90cc09d2f92ff892e4fcdda4af16.tar.xz sigen-a423cf3db8fa90cc09d2f92ff892e4fcdda4af16.zip | |
[FIX] Replaced Point with QPoint (less duplicate code)
[FIX] Fraction and Point widgets are more compact
[FIX] Fleshed out more of the TeamMember
[FIX] Map tilemap editor now expands to fill all available area
[FIX] Added priority values to abilities and moves
[FIX] Added option for ATB-like battle rounds
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@217 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Ability.cpp')
| -rw-r--r-- | pokemod/Ability.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pokemod/Ability.cpp b/pokemod/Ability.cpp index 0d536765..385dd572 100644 --- a/pokemod/Ability.cpp +++ b/pokemod/Ability.cpp @@ -31,6 +31,7 @@ Pokemod::Ability::Ability(const Ability& ability) : Pokemod::Ability::Ability(const Pokemod* parent, const int id) : Object("Ability", parent, id), m_name(""), + m_priority(0), m_description(""), m_script("", "") { @@ -65,6 +66,7 @@ void Pokemod::Ability::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(QString, name); + LOAD(int, priority); LOAD(QString, description); LOAD(Script, script); } @@ -73,6 +75,7 @@ QDomElement Pokemod::Ability::save() const { SAVE_CREATE(); SAVE(QString, name); + SAVE(int, priority); SAVE(QString, description); SAVE(Script, script); return xml; @@ -83,6 +86,11 @@ void Pokemod::Ability::setName(const QString& name) CHECK(name); } +void Pokemod::Ability::setPriority(const int priority) +{ + CHECK(priority); +} + void Pokemod::Ability::setDescription(const QString& description) { CHECK(description); @@ -98,6 +106,11 @@ QString Pokemod::Ability::name() const return m_name; } +int Pokemod::Ability::priority() const +{ + return m_priority; +} + QString Pokemod::Ability::description() const { return m_description; @@ -113,6 +126,7 @@ Pokemod::Ability& Pokemod::Ability::operator=(const Ability& rhs) if (this == &rhs) return *this; COPY(name); + COPY(priority); COPY(description); COPY(script); return *this; |
