A set of classes for parsing, evaluating, and formatting die roll strings.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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