A set of classes for parsing, evaluating, and formatting die roll strings.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SA_DiceEvaluator.h 763B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // SA_DiceEvaluator.h
  3. //
  4. // Copyright (c) 2016 Said Achmiz.
  5. //
  6. // This software is licensed under the MIT license.
  7. // See the file "LICENSE" for more information.
  8. #import <Foundation/Foundation.h>
  9. @class SA_DiceBag;
  10. @class SA_DiceExpression;
  11. /************************************************/
  12. #pragma mark SA_DiceEvaluator class declaration
  13. /************************************************/
  14. @interface SA_DiceEvaluator : NSObject
  15. /************************/
  16. #pragma mark - Properties
  17. /************************/
  18. @property NSUInteger maxDieCount;
  19. @property NSUInteger maxDieSize;
  20. /****************************/
  21. #pragma mark - Public methods
  22. /****************************/
  23. -(SA_DiceExpression *) resultOfExpression:(SA_DiceExpression *)expression;
  24. @end