aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explosedicenode.h
blob: 911126f255b7aae3c29519c20725d20e10a0de40 (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
#ifndef EXPLOSEDICENODE_H
#define EXPLOSEDICENODE_H

#include "executionnode.h"
#include "diceresult.h"
#include "validator.h"

/**
 * @brief The ExploseDiceNode class explose dice while is valid by the validator.
 */
class ExploseDiceNode : public ExecutionNode
{
public:
    ExploseDiceNode();
    virtual void run(ExecutionNode* previous = NULL);

    virtual void setValidator(Validator* );


protected:
    DiceResult* m_diceResult;
    Validator* m_validator;
};

#endif // EXPLOSEDICENODE_H