aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/paintnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-11-28 00:36:15 +0100
committerRenaud G <renaud@rolisteam.org>2016-11-28 00:36:15 +0100
commit13e297604b00615d47352538e3c82ea1ac700d4c (patch)
tree567efe03594d261831897f03a7821c4c6eeac59b /node/paintnode.h
parentcdd1716bd1aa8d9bbd0137aa98ff24867b6b3a0e (diff)
downloadOneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.tar.gz
OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.zip
-Add API for copying a branch of execution node.
-Allow to use if node several times.
Diffstat (limited to 'node/paintnode.h')
-rw-r--r--node/paintnode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/node/paintnode.h b/node/paintnode.h
index 52a9ddb..ffd8ae1 100644
--- a/node/paintnode.h
+++ b/node/paintnode.h
@@ -40,7 +40,9 @@ private:
int m_colorNumber;
QString m_color;
};
-
+/**
+ * @brief The PainterNode class means to manage color attribute of dice.
+ */
class PainterNode : public ExecutionNode
{
public:
@@ -51,6 +53,7 @@ public:
virtual QString toString(bool )const;
virtual qint64 getPriority() const;
void insertColorItem(QString color, int value);
+ virtual ExecutionNode *getCopy() const;
protected:
QList<ColorItem> m_colors;
};