diff options
| author | 2022-04-16 01:58:40 +0200 | |
|---|---|---|
| committer | 2022-04-16 02:59:30 +0200 | |
| commit | 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 (patch) | |
| tree | e29af0f803de724e28eab85da2dfe6c535a8292b /die.h | |
| parent | 0c040da59e6aa2df3bd0c22e38b2afe0512d3749 (diff) | |
| download | OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.tar.gz OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.zip | |
Make sure Windows compilation works
Diffstat (limited to 'die.h')
| -rw-r--r-- | die.h | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -25,6 +25,8 @@ #include <QList> #include <QString> #include <random> + +#include "diceparser/diceparserhelper.h" /** * @brief The Die class implements all methods required from a die. You must set the Faces first, then you can roll it * and roll it again, to add or replace the previous result. @@ -33,18 +35,6 @@ class Die { public: /** - * @brief The ArithmeticOperator enum - */ - enum ArithmeticOperator - { - PLUS, - MINUS, - DIVIDE, - MULTIPLICATION, - INTEGER_DIVIDE, - POW - }; - /** * @brief Die */ Die(); @@ -140,8 +130,8 @@ public: qint64 getMaxValue() const; void setMaxValue(const qint64& maxValue); - Die::ArithmeticOperator getOp() const; - void setOp(const Die::ArithmeticOperator& op); + Dice::ArithmeticOperator getOp() const; + void setOp(const Dice::ArithmeticOperator& op); void setDisplayed(bool b); QString getUuid() const; @@ -162,7 +152,7 @@ private: qint64 m_occurence{1}; QString m_color; - Die::ArithmeticOperator m_op; + Dice::ArithmeticOperator m_op; static std::mt19937 s_rng; }; |