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