Updated LICENSE and info comments
[SA_Dice.git] / SA_DiceBag.h
blob60a0d24585fbe7a319ad57146a311f7c0ddb9812
1 //
2 // SA_DiceBag.h
3 //
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;
25 // -------------
26 // Regular dice.
27 // -------------
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;
38 // -----------
39 // Fudge dice.
40 // -----------
42 -(char) rollFudgeDie;
44 -(NSArray <NSNumber *> *) rollFudgeDice:(NSUInteger)number;
46 @end