aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/rerolldicenode.h
blob: 609fcf35e8568b842d3841ca623bf60bfa85af78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef REROLLDICENODE_H
#define REROLLDICENODE_H


#include "executionnode.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);
private:
    qint64 m_value;
};

#endif // REROLLDICENODE_H