diff options
| author | 2014-01-07 18:58:47 +0100 | |
|---|---|---|
| committer | 2014-01-07 18:58:47 +0100 | |
| commit | 6a590debaad32a470d9c9e528127b53b882f784f (patch) | |
| tree | 81aad56edef8b3254c38f466fb5e106d504a9f24 /booleancondition.cpp | |
| parent | 3a4149d66a300f9e762a4379e403faf31e7d03c7 (diff) | |
| download | OneRoll-6a590debaad32a470d9c9e528127b53b882f784f.tar.gz OneRoll-6a590debaad32a470d9c9e528127b53b882f784f.zip | |
Update booleancondition.cpp
die api instead of quint
Diffstat (limited to 'booleancondition.cpp')
| -rw-r--r-- | booleancondition.cpp | 12 |
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); } |