summaryrefslogtreecommitdiffstats
path: root/pokemod/MoveEffect.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-15 19:55:43 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-15 19:55:43 +0000
commitfdd0eec1d145fb8ac97b4cc9aaed5218214416ec (patch)
tree2389a0d53fe3eaa644ccb220345995feec748823 /pokemod/MoveEffect.cpp
parent77124f3f105ea3837022d20a49028309a211c4b0 (diff)
downloadsigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.gz
sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.tar.xz
sigen-fdd0eec1d145fb8ac97b4cc9aaed5218214416ec.zip
[FIX] Refactored out connections made within widgets
[FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MoveEffect.cpp')
-rw-r--r--pokemod/MoveEffect.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemod/MoveEffect.cpp b/pokemod/MoveEffect.cpp
index 37cb51fc..13d2b7a2 100644
--- a/pokemod/MoveEffect.cpp
+++ b/pokemod/MoveEffect.cpp
@@ -94,6 +94,7 @@ void MoveEffect::setChance(const Fraction& chance)
return;
}
m_chance = chance;
+ emit(changed());
}
void MoveEffect::setEffect(const int effect)
@@ -108,6 +109,7 @@ void MoveEffect::setEffect(const int effect)
m_value2 = INT_MAX;
m_value3 = 0;
m_value4.set(1, 1);
+ emit(changed());
}
void MoveEffect::setValue1(const int value1)
@@ -156,6 +158,7 @@ void MoveEffect::setValue1(const int value1)
return;
}
m_value1 = value1;
+ emit(changed());
}
void MoveEffect::setValue2(const int value2)
@@ -174,6 +177,7 @@ void MoveEffect::setValue2(const int value2)
return;
}
m_value2 = value2;
+ emit(changed());
}
void MoveEffect::setValue3(const int value3)
@@ -185,6 +189,7 @@ void MoveEffect::setValue3(const int value3)
break;
}
m_value3 = value3;
+ emit(changed());
}
void MoveEffect::setValue4(const Fraction& value4)
@@ -195,6 +200,7 @@ void MoveEffect::setValue4(const Fraction& value4)
return;
}
m_value4 = value4;
+ emit(changed());
}
Fraction MoveEffect::chance() const