diff options
Diffstat (limited to 'pokemod/Move.cpp')
| -rw-r--r-- | pokemod/Move.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pokemod/Move.cpp b/pokemod/Move.cpp index 723fd5af..5567947d 100644 --- a/pokemod/Move.cpp +++ b/pokemod/Move.cpp @@ -137,6 +137,7 @@ QDomElement Move::save() const void Move::setName(const QString& name) { m_name = name; + emit(changed()); } void Move::setAccuracy(const Fraction& accuracy) @@ -147,11 +148,13 @@ void Move::setAccuracy(const Fraction& accuracy) return; } m_accuracy = accuracy; + emit(changed()); } void Move::setPower(const int power) { m_power = power; + emit(changed()); } void Move::setType(const int type) @@ -162,11 +165,13 @@ void Move::setType(const int type) return; } m_type = type; + emit(changed()); } void Move::setSpecial(const bool special) { m_special = special; + emit(changed()); } void Move::setPowerPoints(const int powerPoints) @@ -177,6 +182,7 @@ void Move::setPowerPoints(const int powerPoints) return; } m_powerPoints = powerPoints; + emit(changed()); } void Move::setTarget(const int target) @@ -187,6 +193,7 @@ void Move::setTarget(const int target) return; } m_target = target; + emit(changed()); } void Move::setNumTargets(const int numTargets) @@ -197,6 +204,7 @@ void Move::setNumTargets(const int numTargets) return; } m_numTargets = numTargets; + emit(changed()); } void Move::setTargetChoice(const int targetChoice) @@ -207,36 +215,43 @@ void Move::setTargetChoice(const int targetChoice) return; } m_targetChoice = targetChoice; + emit(changed()); } void Move::setIgnoreAccuracy(const bool ignoreAccuracy) { m_ignoreAccuracy = ignoreAccuracy; + emit(changed()); } void Move::setCanFlinch(const bool canFlinch) { m_canFlinch = canFlinch; + emit(changed()); } void Move::setCanRandom(const bool canRandom) { m_canRandom = canRandom; + emit(changed()); } void Move::setCanSnatch(const bool canSnatch) { m_canSnatch = canSnatch; + emit(changed()); } void Move::setSound(const bool sound) { m_sound = sound; + emit(changed()); } void Move::setDescription(const QString& description) { m_description = description; + emit(changed()); } QString Move::name() const |
