aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/scalaroperatornode.h
diff options
context:
space:
mode:
authorrguezennec <renaud@rolisteam.org>2017-04-27 18:17:03 +0200
committerrguezennec <renaud@rolisteam.org>2017-04-27 18:17:03 +0200
commit9b2839b6f09177bda6b3654c56a750f84173123a (patch)
tree259cbab92ad580b11ddd4a01bd8fa53b151a237c /node/scalaroperatornode.h
parent026ca5cb4829cd4c4ad6b945e27479303e96fe82 (diff)
downloadOneRoll-9b2839b6f09177bda6b3654c56a750f84173123a.tar.gz
OneRoll-9b2839b6f09177bda6b3654c56a750f84173123a.zip
-management of arithmetic operator for scalar result of dice.
Diffstat (limited to 'node/scalaroperatornode.h')
-rw-r--r--node/scalaroperatornode.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/node/scalaroperatornode.h b/node/scalaroperatornode.h
index 4b21b8c..0855a4c 100644
--- a/node/scalaroperatornode.h
+++ b/node/scalaroperatornode.h
@@ -27,6 +27,7 @@
#include "executionnode.h"
#include "result/scalarresult.h"
+#include "die.h"
/**
@@ -38,7 +39,7 @@ public:
/**
* @brief The ArithmeticOperator enum
*/
- enum ArithmeticOperator {PLUS,MINUS,DIVIDE,MULTIPLICATION};
+ //enum ArithmeticOperator {PLUS,MINUS,DIVIDE,MULTIPLICATION};
/**
* @brief ScalarOperatorNode
*/
@@ -81,12 +82,12 @@ public:
* @brief getArithmeticOperator
* @return
*/
- ScalarOperatorNode::ArithmeticOperator getArithmeticOperator() const;
+ Die::ArithmeticOperator getArithmeticOperator() const;
/**
* @brief setArithmeticOperator
* @param arithmeticOperator
*/
- void setArithmeticOperator(const ScalarOperatorNode::ArithmeticOperator &arithmeticOperator);
+ void setArithmeticOperator(const Die::ArithmeticOperator &arithmeticOperator);
/**
* @brief getCopy
@@ -118,7 +119,7 @@ private:
private:
ExecutionNode* m_internalNode;
ScalarResult* m_scalarResult;
- ArithmeticOperator m_arithmeticOperator;
+ Die::ArithmeticOperator m_arithmeticOperator;
};
#endif // SCALAROPERATORNODE_H