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 691B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // SA_DiceEvaluator.h
  3. // RPGBot
  4. //
  5. // Created by Sandy Achmiz on 1/2/16.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class SA_DiceBag;
  10. /************************************************/
  11. #pragma mark SA_DiceEvaluator class declaration
  12. /************************************************/
  13. @interface SA_DiceEvaluator : NSObject
  14. /************************/
  15. #pragma mark - Properties
  16. /************************/
  17. @property NSInteger maxDieCount;
  18. @property NSInteger maxDieSize;
  19. @property (strong) SA_DiceBag *diceBag;
  20. /****************************/
  21. #pragma mark - Public methods
  22. /****************************/
  23. - (NSMutableDictionary *)resultOfExpression:(NSDictionary *)expression;
  24. @end