C# Class GoRogue.DiceNotation.Terms.MultiplyTerm

Term representing the division operator -- multiplies Term1 and Term2.
Inheritance: ITerm
Datei anzeigen Open project: Chris3606/GoRogue

Public Methods

Method Description
GetResult ( IEnhancedRandom rng ) : int

Multiplies the first term by the second, evaluating those two terms as necessary.

MultiplyTerm ( ITerm term1, ITerm term2 ) : System.Runtime.Serialization

Constructor. Takes the terms that will be multiplied.

ToString ( ) : string

Returns a parenthesized string representing the term.

Method Details

GetResult() public method

Multiplies the first term by the second, evaluating those two terms as necessary.
public GetResult ( IEnhancedRandom rng ) : int
rng IEnhancedRandom The rng to used -- passed to other terms.
return int

MultiplyTerm() public method

Constructor. Takes the terms that will be multiplied.
public MultiplyTerm ( ITerm term1, ITerm term2 ) : System.Runtime.Serialization
term1 ITerm The first term (left-hand side).
term2 ITerm The second term (left-hand side).
return System.Runtime.Serialization

ToString() public method

Returns a parenthesized string representing the term.
public ToString ( ) : string
return string