diff options
| author | 2015-12-28 21:02:45 +0100 | |
|---|---|---|
| committer | 2015-12-28 21:02:45 +0100 | |
| commit | a5405c2f61184c16cb0e432dd741e9a0b365faa1 (patch) | |
| tree | 754731efe62b5c38c9e9a41eb503f2c9fdce64f6 /result | |
| parent | 597d3790ce9eb10ae1f7d69bee74f5e46f4e1eb4 (diff) | |
| download | OneRoll-a5405c2f61184c16cb0e432dd741e9a0b365faa1.tar.gz OneRoll-a5405c2f61184c16cb0e432dd741e9a0b365faa1.zip | |
manage homogeneous
Diffstat (limited to 'result')
| -rw-r--r-- | result/diceresult.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) |