aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-17 10:51:21 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-17 10:51:21 +0100
commite95a6a38e7be44fbe6dd03d4961bb9ddefea07f1 (patch)
tree1635459f4e3aabfe000b0d23d75759e05161b811 /diceparser.h
parentfc1655c32c4b7f674198fcb9870c419a833f114f (diff)
downloadOneRoll-e95a6a38e7be44fbe6dd03d4961bb9ddefea07f1.tar.gz
OneRoll-e95a6a38e7be44fbe6dd03d4961bb9ddefea07f1.zip
Update diceparser.h
clean up parser
Diffstat (limited to 'diceparser.h')
-rw-r--r--diceparser.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/diceparser.h b/diceparser.h
index 81eb207..92c7248 100644
--- a/diceparser.h
+++ b/diceparser.h
@@ -53,8 +53,21 @@ public:
/**
* @brief parseLine, method to call for starting the dice roll. It will parse the command and run the execution tree.
* @param str dice command
+ * @return bool every thing is fine or not
*/
- void parseLine(QString str);
+ bool parseLine(QString str);
+
+
+ /**
+ * @brief Start running the execution tree
+ *
+ */
+ void Start();
+
+ /**
+ * @brief displayResult
+ */
+ void displayResult();
private:
/**
@@ -114,7 +127,7 @@ private:
bool readLogicOperator(QString& str,BooleanCondition::LogicOperator& condition);
- void displayResult();
+
private:
QMap<QString,DiceOperator>* m_mapDiceOp;