aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'validator.h')
-rw-r--r--validator.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/validator.h b/validator.h
index 469a6fe..a1e7d65 100644
--- a/validator.h
+++ b/validator.h
@@ -22,9 +22,11 @@
#ifndef VALIDATOR_H
#define VALIDATOR_H
+#include "diceparserhelper.h"
#include "die.h"
#include <QString>
#include <Qt>
+#include <set>
/**
* @brief The Validator class is an abstract class for checking the validity of dice for some
* operator.
@@ -58,12 +60,17 @@ public:
* @param faces
* @return
*/
- virtual bool isValidRangeSize(std::pair<qint64, qint64> range) const= 0;
+ virtual Dice::CONDITION_STATE isValidRangeSize(const std::pair<qint64, qint64>& range) const= 0;
/**
* @brief getCopy
* @return return a copy of this validator
*/
virtual Validator* getCopy() const= 0;
+
+ virtual const std::set<qint64>& getPossibleValues(const std::pair<qint64, qint64>& range);
+
+protected:
+ std::set<qint64> m_values;
};
#endif // VALIDATOR_H