C# Class gbrainy.Games.Logic.PuzzleNumericRelation

Inheritance: gbrainy.Core.Main.Game
Mostrar archivo Open project: GNOME/gbrainy

Public Methods

Method Description
Draw ( CairoContextEx gr, int area_width, int area_height, bool rtl ) : void
Validate ( int numbers, Formula formula, int question ) : bool

Protected Methods

Method Description
Initialize ( ) : void

Private Methods

Method Description
SumGroup ( int numbers, int start, int len ) : int
ThirdSubstractingGroup ( int numbers, int start, int len ) : bool
ValidateAddinginGroupsOfTree ( int numbers, int question ) : bool
ValidateAllAdding ( int numbers, int question ) : bool

Method Details

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

Validate() public static method

public static Validate ( int numbers, Formula formula, int question ) : bool
numbers int
formula Formula
question int
return bool