A set of classes for parsing, evaluating, and formatting die roll strings.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SA_DiceBag.h 636B

1234567891011121314151617181920212223242526
  1. //
  2. // SA_DiceBag.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. /****************************************/
  10. #pragma mark SA_DiceBag class declaration
  11. /****************************************/
  12. @interface SA_DiceBag : NSObject
  13. /****************************/
  14. #pragma mark - Public methods
  15. /****************************/
  16. - (unsigned long long)biggestPossibleDieSize;
  17. - (unsigned long long)rollDie:(unsigned long long)die;
  18. - (NSArray *)rollNumber:(NSNumber *)number ofDice:(unsigned long long)die;
  19. @end