blob: 5c918eedbb1e2ff06747f007e0fa97e7f709cd38 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef TESTNODE_H
#define TESTNODE_H
#include <Qt>
#include "executionnode.h"
#include "result/diceresult.h"
#include <utility>
/**
* @brief The TestNode class replaces any kind of node for test purpose.
*/
class TestNode : public ExecutionNode
{
public:
/**
* @brief TestNode builds an instance
* @param faces, number of faces of dices
* @param offset, first value of dice.
*/
TestNode();
virtual ~TestNode() override;
/**
* @brief run - starts to roll dice.
*/
virtual void run(ExecutionNode*) override;
/**
* @brief toString
* @param wl
* @return use to generate dot tree;
*/
virtual QString toString(bool wl) const override;
/**
* @brief getPriority
* @return priority for dice roll: 4 (higher)
*/
virtual qint64 getPriority() const override;
virtual ExecutionNode* getCopy() const override;
void setResult(Result* result);
};
#endif // TESTNODE_H
|