blob: b87fafec472bac0a459628698e9284a908357dce (
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
|
#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* );
private:
Validator* m_validator;
DiceResult* m_myDiceResult;
};
#endif // REROLLDICENODE_H
|