From 60a0e524561ae86c9509c61b00a5d8ba40a1d7ee Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 1 Apr 2015 00:28:17 +0200 Subject: -Better understanding of validators toString method -return error if error have been detected for endless loop. -add listaliasnode.h/.cpp to the pri file -protect the use of pointer --- diceparser.h | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) (limited to 'diceparser.h') diff --git a/diceparser.h b/diceparser.h index 6dd2a10..e4ea0e3 100644 --- a/diceparser.h +++ b/diceparser.h @@ -110,18 +110,50 @@ public: * @brief displayDotTree */ void displayDotTree(); - + /** + * @brief getLastIntegerResult + * @return + */ qreal getLastIntegerResult(); + /** + * @brief getSumOfDiceResult + * @return + */ qreal getSumOfDiceResult(); - + /** + * @brief getLastDiceResult + * @return + */ QString getLastDiceResult(); - + /** + * @brief hasIntegerResultNotInFirst + * @return + */ bool hasIntegerResultNotInFirst(); + /** + * @brief hasDiceResult + * @return + */ bool hasDiceResult(); + /** + * @brief getDiceCommand + * @return + */ QString getDiceCommand(); + /** + * @brief hasStringResult + * @return + */ bool hasStringResult(); + /** + * @brief getStringResult + * @return + */ QString getStringResult(); - + /** + * @brief humanReadableError + * @return + */ QString humanReadableError(); private: @@ -171,6 +203,12 @@ private: * @return */ DiceRollerNode* addRollDiceNode(qint64 faces,ExecutionNode*); + /** + * @brief addExploseDiceNode + * @param faces + * @param previous + * @return + */ ExploseDiceNode* addExploseDiceNode(qint64 faces,ExecutionNode* previous); /** * @brief readOperand -- cgit v1.2.3-70-g09d2