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

#include "executionnode.h"
#include "diceresult.h"
#include "validator.h"
#include <QDebug>

/**
 * @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* );

    virtual QString toString()const;


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

#endif // EXPLOSEDICENODE_H