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

Term representing the division operator -- multiplies Term1 and Term2.
상속: ITerm
파일 보기 프로젝트 열기: Chris3606/GoRogue

공개 메소드들

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