diff options
| author | 2015-05-05 07:03:46 +0200 | |
|---|---|---|
| committer | 2015-05-05 07:03:46 +0200 | |
| commit | e844799045b0b3a4d8a968e011c96c10003d4256 (patch) | |
| tree | 1e0d159489152769c87295e5c33e574d25ebc6a6 /validator.h | |
| parent | 590fc6528b09bf1abbd90caf31053cd5ef6b439b (diff) | |
| parent | 6dbf254b7d5b19b77eb4716b24a1768f48b11248 (diff) | |
| download | OneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.tar.gz OneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.zip | |
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'validator.h')
| -rw-r--r-- | validator.h | 25 |
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 ; }; |