diff options
| author | 2022-04-29 10:48:09 +0200 | |
|---|---|---|
| committer | 2022-04-29 10:48:09 +0200 | |
| commit | 07c5f6ec23fcf9237a24e71adcfacabce677f818 (patch) | |
| tree | 588e8c5f82b9163181fad3581f610e6f1d88cba4 /tests/dice/testnode.cpp | |
| parent | a9153f1615a842cfb9e9bcda4d9071e202618569 (diff) | |
| download | OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.tar.gz OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.zip | |
Change file organization.
Diffstat (limited to 'tests/dice/testnode.cpp')
| -rw-r--r-- | tests/dice/testnode.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/dice/testnode.cpp b/tests/dice/testnode.cpp deleted file mode 100644 index de9fc05..0000000 --- a/tests/dice/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; -} |