aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
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