diff options
| author | 2019-07-25 09:59:03 +0200 | |
|---|---|---|
| committer | 2019-07-25 09:59:03 +0200 | |
| commit | 6f499de159eeac37fe473f945042e13359dc2d40 (patch) | |
| tree | 17356b91f9994ab5b19405072878b8449781e74c /tests/testnode.cpp | |
| parent | f5906125576a8323a731c9456ce3dfc53b67ef59 (diff) | |
| download | OneRoll-6f499de159eeac37fe473f945042e13359dc2d40.tar.gz OneRoll-6f499de159eeac37fe473f945042e13359dc2d40.zip | |
move files
Diffstat (limited to 'tests/testnode.cpp')
| -rw-r--r-- | tests/testnode.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/testnode.cpp b/tests/testnode.cpp deleted file mode 100644 index de9fc05..0000000 --- a/tests/testnode.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include "testnode.h" -#include "die.h" - -TestNode::TestNode() {} - -TestNode::~TestNode() -{ - m_nextNode= nullptr; - m_result= nullptr; -} -void TestNode::run(ExecutionNode* previous) -{ - Q_UNUSED(previous) - if(nullptr != m_nextNode) - { - m_nextNode->run(this); - } -} - -QString TestNode::toString(bool wl) const -{ - if(wl) - { - return QStringLiteral("%1 [label=\"TestNode \"]").arg(m_id); - } - else - { - return m_id; - } -} -qint64 TestNode::getPriority() const -{ - qint64 priority= 4; - return priority; -} -ExecutionNode* TestNode::getCopy() const -{ - TestNode* node= new TestNode(); - if(nullptr != m_nextNode) - { - node->setNextNode(m_nextNode->getCopy()); - } - return node; -} - -void TestNode::setResult(Result* result) -{ - m_result= result; -} |