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

Term representing the division operator -- divides the first term by the second.
Наследование: ITerm
Показать файл Открыть проект

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

Метод Описание
DivideTerm ( ITerm term1, ITerm term2 ) : System

Constructor. Takes the two terms to divide.

GetResult ( IEnhancedRandom rng ) : int

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

ToString ( ) : string

Returns a parenthesized string representing the operation.

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

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

Constructor. Takes the two terms to divide.
public DivideTerm ( ITerm term1, ITerm term2 ) : System
term1 ITerm The first term (left-hand side).
term2 ITerm The second term (right-hand side).
Результат System

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

Divides 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

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

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