RogueSharp
Show / Hide Table of Contents

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 Source

DiceResult(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 Source

RandomUsed

The random number generator used to get this result

Declaration
public IRandom RandomUsed { get; }
Property Value
Type Description
IRandom
| Improve this Doc View Source

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>
| Improve this Doc View Source

Value

The total result of the the roll

Declaration
public int Value { get; }
Property Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
RogueSharp © 2014-2020 Faron Bracy
Back to top