aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/testnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-11 22:57:21 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-11 23:28:42 +0200
commit48c470b72cf32c49dc146f5859d67708759997b2 (patch)
tree4205c6ef6b95830edb507cc8ee68bb1bf7c00ab4 /node/testnode.cpp
parent69373b4ec96b7d510e16fccfa1b9f2a2ec790508 (diff)
downloadOneRoll-48c470b72cf32c49dc146f5859d67708759997b2.tar.gz
OneRoll-48c470b72cf32c49dc146f5859d67708759997b2.zip
rework diceparser to run unit tests
Diffstat (limited to 'node/testnode.cpp')
-rw-r--r--node/testnode.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/node/testnode.cpp b/node/testnode.cpp
deleted file mode 100644
index 263286b..0000000
--- a/node/testnode.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "testnode.h"
-#include "die.h"
-
-TestNode::TestNode() {}
-
-TestNode::~TestNode()
-{
- m_nextNode= nullptr;
- m_result= nullptr;
-}
-void TestNode::run(ExecutionNode* 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;
-}