C# 클래스 GoRogue.DiceNotation.Terms.DivideTerm

Term representing the division operator -- divides the first term by the second.
상속: ITerm
파일 보기 프로젝트 열기: Chris3606/GoRogue

공개 메소드들

메소드 설명
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