aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explosedicenode.h
blob: a9238b82ebe1e1dc54d55c0a05b7e343ad7d2ba5 (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
#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;
    virtual qint64 getPriority() const;

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

#endif // EXPLOSEDICENODE_H