C# Класс GoRogue.DiceNotation.Terms.MultiplyTerm

Term representing the division operator -- multiplies Term1 and Term2.
Наследование: ITerm
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetResult() публичный Метод

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.
Результат int

MultiplyTerm() публичный Метод

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).
Результат System.Runtime.Serialization

ToString() публичный Метод

Returns a parenthesized string representing the term.
public ToString ( ) : string
Результат string