From 2685e8e4fbbc480bbc9edf991faace7082987f38 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 9 Dec 2014 22:07:31 +0100 Subject: -New API for result type. --- diceresult.h | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'diceresult.h') diff --git a/diceresult.h b/diceresult.h index ff3edc3..838a83d 100644 --- a/diceresult.h +++ b/diceresult.h @@ -31,16 +31,35 @@ class DiceResult : public Result { public: + /** + * @brief DiceResult + */ DiceResult(); - qint64 getSum(); + /** + * @brief getResultList + * @return + */ QList& getResultList(); + /** + * @brief insertResult + */ void insertResult(Die*); + /** + * @brief setResultList + * @param list + */ void setResultList(QList list); - bool isScalar() const; - virtual qreal getScalar(); + /** + * @brief getScalar + * @return + */ + virtual QVariant getResult(RESULT_TYPE); + +private: + qreal getScalarResult(); private: QList m_diceValues; }; -- cgit v1.2.3-70-g09d2