diff options
| author | 2018-01-25 01:07:00 +0100 | |
|---|---|---|
| committer | 2018-01-25 01:07:00 +0100 | |
| commit | 7dc4bdca925a1999f7fcd2b052677ab1e2e43a4a (patch) | |
| tree | d2f9fd84dbf104c31b2abecbb6a25d135b86a01a /result/diceresult.h | |
| parent | b16ce0dfa892df424c133cc5b22b3dc4760ca303 (diff) | |
| download | OneRoll-7dc4bdca925a1999f7fcd2b052677ab1e2e43a4a.tar.gz OneRoll-7dc4bdca925a1999f7fcd2b052677ab1e2e43a4a.zip | |
-Add API to know if dice is already inside the result.
Diffstat (limited to 'result/diceresult.h')
| -rw-r--r-- | result/diceresult.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/result/diceresult.h b/result/diceresult.h index 7eded95..ae16daf 100644 --- a/result/diceresult.h +++ b/result/diceresult.h @@ -76,8 +76,8 @@ public: void setHomogeneous(bool); Die::ArithmeticOperator getOperator() const; - void setOperator(const Die::ArithmeticOperator & dieOperator); - + void setOperator(const Die::ArithmeticOperator & dieOperator); + bool contains(Die *die, const std::function<bool (const Die *, const Die *)> equal); private: qreal getScalarResult(); private: |