Word Game Builder 2.0.1f2
Reference Manual
|
Helper methods to check for a word in a language, using letter tiles as input. More...
Static Public Member Functions | |
static void | AbortAllTasks () |
Aborts all asynchronous tasks. More... | |
static WordGameResult | CheckWord (IList< ILetterTile > letterTiles, bool ordered=true, WordGameLanguage language=null, int maxWordLength=0, int maxIterations=0) |
Checks the input word against a language dictionary. More... | |
static AsyncTask | CheckWordAsync (IList< ILetterTile > letterTiles, System.Action< WordGameResult > callback=null, bool ordered=true, WordGameLanguage language=null, int maxWordLength=-1, int maxIterations=-1, bool forceAsync=false) |
Checks the input word against the dictionary, asynchronously on another thread. More... | |
static string | GetWord (IList< ILetterTile > letterTiles) |
Gets the word from a list of a letter tiles. More... | |
Properties | |
static int | maxIterations [get, set] |
The maximum amount of iterations for any permutation checks. More... | |
static int | maxWordLength [get, set] |
The maximum word length for any word checks. More... | |
static int | taskCount [get] |
Gets the amount of currently running asynchronous tasks. More... | |
Helper methods to check for a word in a language, using letter tiles as input.
|
inlinestatic |
Aborts all asynchronous tasks.
|
inlinestatic |
Checks the input word against a language dictionary.
letterTiles | The letter tile input for the lookup operation. |
ordered | If true, performs a check on the tiles, in order. If false, performs a permutation check on every combination of the letter tiles. Defaults to true. |
language | The language to check the word against. Defaults to the current language. |
maxWordLength | The maximum word length for the lookup operation. Defaults to WordChecker.maxWordLength. |
maxIterations | The maximum amount of iterations for any permutation checks. Defaults to WordChecker.maxWordLength. |
|
inlinestatic |
Checks the input word against the dictionary, asynchronously on another thread.
letterTiles | The letter tile input for the lookup operation. |
callback | The method to call upon completion. This method must take a WordGameResult as the only argument. |
ordered | If true, performs a check on the tiles, in order. If false, performs a permutation check on every combination of the letter tiles. |
language | The language to check the word against. |
maxWordLength | The maximum word length for the lookup operation. Overrides WordChecker.maxWordLength. |
maxIterations | The maximum amount of iterations for any permutation checks. Overrides WordChecker.maxWordLength. |
forceAsync | If true, this method will always execute on another thread. |
If less than 4 tiles are specified and forceAsync = false, this method is run on the same thread that it is called and returns an empty task.
|
inlinestatic |
Gets the word from a list of a letter tiles.
Does not perform any dictionary checks.
letterTiles | The list of letter tiles to turn into a word. |
|
staticgetset |
The maximum amount of iterations for any permutation checks.
|
staticgetset |
The maximum word length for any word checks.
Inputs above this value will be truncated.
|
staticget |
Gets the amount of currently running asynchronous tasks.