diff options
| author | 2014-01-08 18:15:31 +0100 | |
|---|---|---|
| committer | 2014-01-08 18:15:31 +0100 | |
| commit | 0354f77e860562668f8684d25c175b7fde2fa33d (patch) | |
| tree | ad3797941a2dba38f966b52f84cb14291747d217 /booleancondition.cpp | |
| parent | 4c4d35716f9677be8af70a8040bd53bca4833314 (diff) | |
| download | OneRoll-0354f77e860562668f8684d25c175b7fde2fa33d.tar.gz OneRoll-0354f77e860562668f8684d25c175b7fde2fa33d.zip | |
Update booleancondition.cpp
die*
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 8194271..26d8063 100644 --- a/booleancondition.cpp +++ b/booleancondition.cpp @@ -4,20 +4,20 @@ BooleanCondition::BooleanCondition() { } -bool BooleanCondition::isValid(Die b) const +bool BooleanCondition::isValid(Die* b) const { switch(m_operator) { case Equal: - return (b.getValue()==m_value); + return (b->getValue()==m_value); case GreaterThan: - return (b.getValue()>m_value); + return (b->getValue()>m_value); case LesserThan: - return (b.getValue()<m_value); + return (b->getValue()<m_value); case GreaterOrEqual: - return (b.getValue()>=m_value); + return (b->getValue()>=m_value); case LesserOrEqual: - return (b.getValue()<=m_value); + return (b->getValue()<=m_value); } |