aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-01 00:28:17 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-01 00:28:17 +0200
commit60a0e524561ae86c9509c61b00a5d8ba40a1d7ee (patch)
treecd60b92368403a806ee8e7bcb00b41e5000722f1 /diceparser.h
parent5bd5a8a07a900c013c120b4e228c766a84a05b09 (diff)
downloadOneRoll-60a0e524561ae86c9509c61b00a5d8ba40a1d7ee.tar.gz
OneRoll-60a0e524561ae86c9509c61b00a5d8ba40a1d7ee.zip
-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
Diffstat (limited to 'diceparser.h')
-rw-r--r--diceparser.h46
1 files changed, 42 insertions, 4 deletions
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