A set of classes for parsing, evaluating, and formatting die roll strings.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SA_DiceEvaluator.h 707B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // SA_DiceEvaluator.h
  3. //
  4. // Copyright 2016-2021 Said Achmiz.
  5. // See LICENSE and README.md for more info.
  6. #import <Foundation/Foundation.h>
  7. @class SA_DiceBag;
  8. @class SA_DiceExpression;
  9. /************************************************/
  10. #pragma mark SA_DiceEvaluator class declaration
  11. /************************************************/
  12. @interface SA_DiceEvaluator : NSObject
  13. /************************/
  14. #pragma mark - Properties
  15. /************************/
  16. @property NSUInteger maxDieCount;
  17. @property NSUInteger maxDieSize;
  18. /****************************/
  19. #pragma mark - Public methods
  20. /****************************/
  21. -(SA_DiceExpression *) resultOfExpression:(SA_DiceExpression *)expression;
  22. @end