C# Class gbrainy.Games.Calculation.CalculationFractions

Inheritance: gbrainy.Core.Main.Game
Mostra file Open project: GNOME/gbrainy

Private Properties

Property Type Description
AnswerAsFraction string
LCM int
LCM int

Public Methods

Method Description
CheckAnswer ( string answer ) : bool
Draw ( CairoContextEx gr, int area_width, int area_height, bool rtl ) : void

Protected Methods

Method Description
Initialize ( ) : void

Private Methods

Method Description
AnswerAsFraction ( ) : string
LCM ( int integerSet ) : int
LCM ( int a, int b ) : int

Method Details

CheckAnswer() public method

public CheckAnswer ( string answer ) : bool
answer string
return bool

Draw() public method

public Draw ( CairoContextEx gr, int area_width, int area_height, bool rtl ) : void
gr gbrainy.Core.Main.CairoContextEx
area_width int
area_height int
rtl bool
return void

Initialize() protected method

protected Initialize ( ) : void
return void