aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-28 01:35:59 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-28 01:35:59 +0200
commit7f535260bbc2210bf8d605bac88546e9f18b2b05 (patch)
treee519a681900aa5041d6bdb11004c14282f4c0b98 /include
parentf1a89a3ca758c8af549e62ad4258504cb2bc2c7c (diff)
downloadOneRoll-7f535260bbc2210bf8d605bac88546e9f18b2b05.tar.gz
OneRoll-7f535260bbc2210bf8d605bac88546e9f18b2b05.zip
New API for isValidRangeSize
Diffstat (limited to 'include')
-rw-r--r--include/diceparserhelper.h8
-rw-r--r--include/parsingtoolbox.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/diceparserhelper.h b/include/diceparserhelper.h
index 5013ebe..00b9362 100644
--- a/include/diceparserhelper.h
+++ b/include/diceparserhelper.h
@@ -4,6 +4,14 @@
namespace Dice
{
+enum class CONDITION_STATE : int
+{
+ ERROR,
+ ALWAYSTRUE,
+ UNREACHABLE,
+ REACHABLE
+};
+
enum class ERROR_CODE : int
{
NO_DICE_ERROR,
diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h
index b91db1a..9e246d6 100644
--- a/include/parsingtoolbox.h
+++ b/include/parsingtoolbox.h
@@ -175,7 +175,7 @@ public:
* @param val
* @return
*/
- bool isValidValidator(ExecutionNode* previous, Validator* val);
+ Dice::CONDITION_STATE isValidValidator(ExecutionNode* previous, Validator* val);
/**
* @brief getDiceRollerNode
* @param previous