C# Class GoRogue.DiceNotation.Terms.MultiplyTerm

Term representing the division operator -- multiplies Term1 and Term2.
Inheritance: ITerm
Afficher le fichier Open project: Chris3606/GoRogue

Méthodes publiques

Méthode 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 méthode

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.
Résultat int

MultiplyTerm() public méthode

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).
Résultat System.Runtime.Serialization

ToString() public méthode

Returns a parenthesized string representing the term.
public ToString ( ) : string
Résultat string