Class DiceResult
The DiceResult class represents the result of rolling a DiceExpression
Inheritance
System.Object
DiceResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RogueSharp.DiceNotation
Assembly: RogueSharp.dll
Syntax
public class DiceResult
Constructors
| Improve this Doc View SourceDiceResult(IEnumerable<TermResult>, IRandom)
Construct a new DiceResult from the specified values
Declaration
public DiceResult(IEnumerable<TermResult> results, IRandom randomUsed)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TermResult> | results | An IEnumerable of TermResult that represents one result for each DiceTerm in the DiceExpression |
IRandom | randomUsed | The random number generator used to get this result |
Properties
| Improve this Doc View SourceRandomUsed
The random number generator used to get this result
Declaration
public IRandom RandomUsed { get; }
Property Value
Type | Description |
---|---|
IRandom |
Results
A Collection of TermResults that represents one result for each DiceTerm in the DiceExpression
Declaration
public ReadOnlyCollection<TermResult> Results { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<TermResult> |
Value
The total result of the the roll
Declaration
public int Value { get; }
Property Value
Type | Description |
---|---|
System.Int32 |