blob: fcdd5dfff41d9e80dfaa21b2b905eef04b45dc4c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef REROLLDICENODE_H
#define REROLLDICENODE_H
#include "executionnode.h"
#include "diceresult.h"
#include "validator.h"
/**
* @brief The RerollDiceNode class reroll dice given a condition and replace(or add) the result.
*/
class RerollDiceNode : public ExecutionNode
{
public:
enum ReRollMode {EQUAL,LESSER,GREATER};
RerollDiceNode();
virtual void run(ExecutionNode* previous);
virtual void setValidator(Validator* );
virtual QString toString()const;
virtual void setAddingMode(bool);
virtual qint64 getPriority() const;
private:
Validator* m_validator;
DiceResult* m_myDiceResult;
bool m_adding;
};
#endif // REROLLDICENODE_H
|