aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/diceresult.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2018-04-23 13:41:46 +0200
committerobiwankennedy <renaud@rolisteam.org>2018-04-23 13:41:46 +0200
commitfd5728eb399e10514afd0bb55b73d504d50b7517 (patch)
treed40b0541ca91a56f6ec349c6d8569e8bb2b70d3a /result/diceresult.cpp
parent4fa76667c4e7f31ed6b28eb43ad277ac448e0e71 (diff)
downloadOneRoll-fd5728eb399e10514afd0bb55b73d504d50b7517.tar.gz
OneRoll-fd5728eb399e10514afd0bb55b73d504d50b7517.zip
reroll dice with replacement by expression
Diffstat (limited to 'result/diceresult.cpp')
-rw-r--r--result/diceresult.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp
index b8ed8d5..ce59cb1 100644
--- a/result/diceresult.cpp
+++ b/result/diceresult.cpp
@@ -143,6 +143,11 @@ Die::ArithmeticOperator DiceResult::getOperator() const
return m_operator;
}
+void DiceResult::clear()
+{
+ m_diceValues.clear();
+}
+
void DiceResult::setOperator(const Die::ArithmeticOperator& dieOperator)
{
m_operator = dieOperator;