aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/booleancondition.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-07 18:58:47 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-07 18:58:47 +0100
commit6a590debaad32a470d9c9e528127b53b882f784f (patch)
tree81aad56edef8b3254c38f466fb5e106d504a9f24 /booleancondition.cpp
parent3a4149d66a300f9e762a4379e403faf31e7d03c7 (diff)
downloadOneRoll-6a590debaad32a470d9c9e528127b53b882f784f.tar.gz
OneRoll-6a590debaad32a470d9c9e528127b53b882f784f.zip
Update booleancondition.cpp
die api instead of quint
Diffstat (limited to 'booleancondition.cpp')
-rw-r--r--booleancondition.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp
index c0b4299..8194271 100644
--- a/booleancondition.cpp
+++ b/booleancondition.cpp
@@ -4,20 +4,20 @@
BooleanCondition::BooleanCondition()
{
}
-bool BooleanCondition::isValid(qint64 b) const
+bool BooleanCondition::isValid(Die b) const
{
switch(m_operator)
{
case Equal:
- return (b==m_value);
+ return (b.getValue()==m_value);
case GreaterThan:
- return (b>m_value);
+ return (b.getValue()>m_value);
case LesserThan:
- return (b<m_value);
+ return (b.getValue()<m_value);
case GreaterOrEqual:
- return (b>=m_value);
+ return (b.getValue()>=m_value);
case LesserOrEqual:
- return (b<=m_value);
+ return (b.getValue()<=m_value);
}