aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-12-19 10:38:32 +0100
committerGitHub <noreply@github.com>2016-12-19 10:38:32 +0100
commita11f72ea71e8fc390ff15307eb393ffcd6e12147 (patch)
tree0c560dcc9f6b940d010fec53a2549114d7b76072
parent1bd34a24eaa8717ae61f2f46339001f7b830808e (diff)
downloadOneRoll-a11f72ea71e8fc390ff15307eb393ffcd6e12147.tar.gz
OneRoll-a11f72ea71e8fc390ff15307eb393ffcd6e12147.zip
Update diceparser.h
Add comments
-rw-r--r--diceparser.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/diceparser.h b/diceparser.h
index fb56685..0bc32e8 100644
--- a/diceparser.h
+++ b/diceparser.h
@@ -207,8 +207,18 @@ public:
* @return
*/
QStringList getAllDiceResult(bool& hasAlias);
-
+ /**
+ * @brief hasSeparator allows to know if the current command has separator.
+ * @return true when the command has separator, false otherwise.
+ */
bool hasSeparator()const;
+ /**
+ * @brief readIfInstruction reads the current command to build if node with proper parameters.
+ * @param str is the command string, if IF istruction is found, the str will be changed, in other case the string is unmodified
+ * @param trueNode is the branch's beginning to be executed if the IfNode is true.
+ * @param falseNode is the branch's beginning to be executed if the IfNode is false.
+ * @return true, ifNode has been found, false otherwise
+ */
bool readIfInstruction(QString &str, ExecutionNode* &trueNode, ExecutionNode* &falseNode);
/**
* @brief setVariableDictionary