C# 클래스 Word_Find_Solver.Grid

파일 보기 프로젝트 열기: andreigec/Word-Find-Solver

공개 프로퍼티들

프로퍼티 타입 설명
Baseform Form1

공개 메소드들

메소드 설명
Clear ( ) : void
FindAndHighlight ( FoundWord fw ) : void
FindAndHighlight ( String word, FindMode fm ) : void
GetLastTextbox ( ) : TextBox

get the very last textbox for panel resize

GetPointFromTextBox ( TextBox tb ) : GridPoint

get x,y of text box passed in.

InitGrid ( int widthI, int heightI, string rows = null ) : void

initialise the grid

InitGrid ( string rows ) : void
InitPanel ( ANDREICSLIB.ClassReplacements.PanelReplacement pu ) : void
InitWords ( ) : void
RandomiseLetters ( ) : void
SaveGridToFile ( String filename ) : void
SetGridPointValue ( TextBox tb, string sFirstOnly, bool setTextboxValue = true ) : void
Solve ( FindMode fm, bool onlyBest, int maxret = -1 ) : List

find all words and their scores in a grid and output the words found to a listbox

비공개 메소드들

메소드 설명
FindMatch ( string word, int posc, FindMode fm, List lastaccum = null, Direction lastdir = Direction.NotSet ) : List

find words based on raw input text

GenNewLetter ( int max ) : char
GetDirection ( GridPoint basetb, GridPoint comptb ) : Direction
GetSquare ( char letter, FindMode fm, int startX = -1, int startY = -1, List ignorelist = null, Direction d = Direction.NotSet ) : IEnumerable

from a starting point, find a letter

GetWordScore ( IEnumerable history ) : int
OutOfBounds ( int a, bool isX ) : bool
SetSearchDimensions ( int startX, int startY, FindMode fm, int &miny, int &maxy, int &minx, int &maxx, Direction d = Direction.NotSet ) : void
SetTbColour ( TextBox tb, bool find ) : void
Solve ( String word, List history, Direction lastdir, FindMode fm, int minx, int maxx, int miny, int maxy ) : IEnumerable

from a starting letter/position, find all possible words from this

메소드 상세

Clear() 공개 정적인 메소드

public static Clear ( ) : void
리턴 void

FindAndHighlight() 공개 정적인 메소드

public static FindAndHighlight ( FoundWord fw ) : void
fw FoundWord
리턴 void

FindAndHighlight() 공개 정적인 메소드

public static FindAndHighlight ( String word, FindMode fm ) : void
word String
fm FindMode
리턴 void

GetLastTextbox() 공개 정적인 메소드

get the very last textbox for panel resize
public static GetLastTextbox ( ) : TextBox
리턴 System.Windows.Forms.TextBox

GetPointFromTextBox() 공개 정적인 메소드

get x,y of text box passed in.
public static GetPointFromTextBox ( TextBox tb ) : GridPoint
tb System.Windows.Forms.TextBox
리턴 GridPoint

InitGrid() 공개 정적인 메소드

initialise the grid
public static InitGrid ( int widthI, int heightI, string rows = null ) : void
widthI int
heightI int
rows string
리턴 void

InitGrid() 공개 정적인 메소드

public static InitGrid ( string rows ) : void
rows string
리턴 void

InitPanel() 공개 정적인 메소드

public static InitPanel ( ANDREICSLIB.ClassReplacements.PanelReplacement pu ) : void
pu ANDREICSLIB.ClassReplacements.PanelReplacement
리턴 void

InitWords() 공개 정적인 메소드

public static InitWords ( ) : void
리턴 void

RandomiseLetters() 공개 정적인 메소드

public static RandomiseLetters ( ) : void
리턴 void

SaveGridToFile() 공개 정적인 메소드

public static SaveGridToFile ( String filename ) : void
filename String
리턴 void

SetGridPointValue() 공개 정적인 메소드

public static SetGridPointValue ( TextBox tb, string sFirstOnly, bool setTextboxValue = true ) : void
tb System.Windows.Forms.TextBox
sFirstOnly string
setTextboxValue bool
리턴 void

Solve() 공개 정적인 메소드

find all words and their scores in a grid and output the words found to a listbox
public static Solve ( FindMode fm, bool onlyBest, int maxret = -1 ) : List
fm FindMode
onlyBest bool
maxret int
리턴 List

프로퍼티 상세

Baseform 공개적으로 정적으로 프로퍼티

public static Form1 Baseform
리턴 Form1