aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validator.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-05-05 07:03:46 +0200
committerRenaud G <renaud@rolisteam.org>2015-05-05 07:03:46 +0200
commite844799045b0b3a4d8a968e011c96c10003d4256 (patch)
tree1e0d159489152769c87295e5c33e574d25ebc6a6 /validator.h
parent590fc6528b09bf1abbd90caf31053cd5ef6b439b (diff)
parent6dbf254b7d5b19b77eb4716b24a1768f48b11248 (diff)
downloadOneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.tar.gz
OneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'validator.h')
-rw-r--r--validator.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/validator.h b/validator.h
index d18a691..6dd8292 100644
--- a/validator.h
+++ b/validator.h
@@ -25,14 +25,35 @@
#include <Qt>
#include "die.h"
#include <QString>
-
+/**
+ * @brief The Validator class is an abstract class for checking the validity of dice for some
+ * operator.
+ */
class Validator
{
public:
+ /**
+ * @brief Validator
+ */
Validator();
+ /**
+ * @brief hasValid
+ * @param b
+ * @param recursive
+ * @param unlight
+ * @return
+ */
virtual qint64 hasValid(Die* b,bool recursive,bool unlight = false) const = 0 ;
-
+ /**
+ * @brief toString
+ * @return
+ */
virtual QString toString()=0;
+ /**
+ * @brief getValidRangeSize
+ * @param faces
+ * @return
+ */
virtual quint8 getValidRangeSize(quint64 faces) const = 0 ;
};