4 // Copyright 2016-2021 Said Achmiz.
5 // See LICENSE and README.md for more info.
7 #import <Foundation/Foundation.h>
9 typedef NS_OPTIONS(NSUInteger
, SA_DiceRollingOptions
) {
10 SA_DiceRollingExplodingDice
= 1 << 1
13 /****************************************/
14 #pragma mark SA_DiceBag class declaration
15 /****************************************/
17 @interface SA_DiceBag
: NSObject
19 /****************************/
20 #pragma mark - Public methods
21 /****************************/
23 -(NSUInteger
) biggestPossibleDieSize
;
29 -(NSUInteger
) rollDie
:(NSUInteger
)dieSize
;
31 -(NSArray
<NSNumber
*> *) rollNumber
:(NSUInteger
)number
32 ofDice
:(NSUInteger
)dieSize
;
34 -(NSArray
<NSNumber
*> *) rollNumber
:(NSUInteger
)number
35 ofDice
:(NSUInteger
)dieSize
36 withOptions
:(SA_DiceRollingOptions
)options
;
44 -(NSArray
<NSNumber
*> *) rollFudgeDice
:(NSUInteger
)number
;