Wiki
Clone wikiRogueSharp / RogueSharp.DiceNotation / DiceExpression / README
DiceExpression Class
The DiceExpression class can be used to fluently add DiceTerms to a collection and then Roll them.
Inheritance Hierarchy
SystemObject
RogueSharp.DiceNotationDiceExpression
Namespace: RogueSharp.DiceNotation
Assembly:
Syntax
publicclassDiceExpression
The DiceExpression type exposes the following members.
Constructors
Name | Description |
---|---|
DiceExpression | Construct a new DiceExpression class with an empty list of terms |
Methods
Name | Description |
---|---|
Constant | Add a constant to this DiceExpression with the specified integer value |
Dice(Int32, Int32) | Add multiple Dice to this DiceExpression with the specified parameters |
Dice(Int32, Int32, Int32) | Add multiple Dice to this DiceExpression with the specified parameters |
Dice(Int32, Int32, Int32, NullableInt32) | Add multiple Dice to this DiceExpression with the specified parameters |
Die(Int32) | Add a single Die to this DiceExpression with the specified number of sides |
Die(Int32, Int32) | Add a single Die to this DiceExpression with the specified number of sides and scalar |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
MaxRoll | Roll all of the Dice that are part of this DiceExpression, but force all of the rolls to be the highest possible result |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
MinRoll | Roll all of the Dice that are part of this DiceExpression, but force all of the rolls to be the lowest possible result |
Roll | Roll all of the Dice that are part of this DiceExpression |
Roll(IRandom) | Roll all of the Dice that are part of this DiceExpression |
ToString | Returns a string that represents this DiceExpression (Overrides ObjectToString.) |
See Also
Reference
RogueSharp.DiceNotation Namespace
[14]: 2014-2016 Faron Bracy
Updated