aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/diceresult.h
diff options
context:
space:
mode:
authorrguezennec <renaud@rolisteam.org>2017-04-27 18:17:03 +0200
committerrguezennec <renaud@rolisteam.org>2017-04-27 18:17:03 +0200
commit9b2839b6f09177bda6b3654c56a750f84173123a (patch)
tree259cbab92ad580b11ddd4a01bd8fa53b151a237c /result/diceresult.h
parent026ca5cb4829cd4c4ad6b945e27479303e96fe82 (diff)
downloadOneRoll-9b2839b6f09177bda6b3654c56a750f84173123a.tar.gz
OneRoll-9b2839b6f09177bda6b3654c56a750f84173123a.zip
-management of arithmetic operator for scalar result of dice.
Diffstat (limited to 'result/diceresult.h')
-rw-r--r--result/diceresult.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/result/diceresult.h b/result/diceresult.h
index 3be47ed..7eded95 100644
--- a/result/diceresult.h
+++ b/result/diceresult.h
@@ -75,11 +75,15 @@ public:
*/
void setHomogeneous(bool);
+ Die::ArithmeticOperator getOperator() const;
+ void setOperator(const Die::ArithmeticOperator & dieOperator);
+
private:
qreal getScalarResult();
private:
QList<Die*> m_diceValues;
bool m_homogeneous;
+ Die::ArithmeticOperator m_operator;
};
#endif // DICERESULT_H