diff options
| author | 2016-11-03 17:36:21 +0100 | |
|---|---|---|
| committer | 2016-11-03 17:36:21 +0100 | |
| commit | 9d389e561339e4fd7a68d60f593ad233e3941d13 (patch) | |
| tree | 39e98d9d3a612be9c6cf449f5a7a5dfdf4593865 /node/filternode.h | |
| parent | 120add8ca2f3a7e075b415a611bcd09034bd6200 (diff) | |
| download | OneRoll-9d389e561339e4fd7a68d60f593ad233e3941d13.tar.gz OneRoll-9d389e561339e4fd7a68d60f593ad233e3941d13.zip | |
-Add FilterNode to dice system.
Diffstat (limited to 'node/filternode.h')
| -rw-r--r-- | node/filternode.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/node/filternode.h b/node/filternode.h index b87dff7..ca08c3b 100644 --- a/node/filternode.h +++ b/node/filternode.h @@ -1,11 +1,37 @@ #ifndef FILTERNODE_H #define FILTERNODE_H +#include "executionnode.h" -class FilterNode +#include "validator.h" +#include "result/diceresult.h" + +class FilterNode : public ExecutionNode { public: FilterNode(); + virtual ~FilterNode(); + + virtual void run(ExecutionNode* previous); + /** + * @brief setValidator + */ + virtual void setValidator(Validator* ); + /** + * @brief toString + * @return + */ + virtual QString toString(bool withLabel)const; + /** + * @brief getPriority + * @return + */ + virtual qint64 getPriority() const; + +private: + DiceResult* m_diceResult; + Validator* m_validator; + bool m_eachValue; }; -#endif // FILTERNODE_H
\ No newline at end of file +#endif // FILTERNODE_H |