From a5405c2f61184c16cb0e432dd741e9a0b365faa1 Mon Sep 17 00:00:00 2001 From: Renaud Date: Mon, 28 Dec 2015 21:02:45 +0100 Subject: manage homogeneous --- result/diceresult.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'result') diff --git a/result/diceresult.cpp b/result/diceresult.cpp index 57e9da4..26b8ef8 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -23,7 +23,7 @@ DiceResult::DiceResult() { - m_resultTypes= (DICE_LIST); + m_resultTypes= (DICE_LIST | SCALAR); m_homogeneous = true; } void DiceResult::insertResult(Die* die) @@ -73,6 +73,10 @@ QVariant DiceResult::getResult(RESULT_TYPE type) return QVariant(); } +/*bool DiceResult::hasResultOfType(RESULT_TYPE type) const +{ + return (m_resultTypes & type); +}*/ qreal DiceResult::getScalarResult() { if(m_diceValues.size()==1) -- cgit v1.2.3-70-g09d2