|
void | Add (ILetterTile item) |
| Adds a tile to the tile pool. If the pool already contains the tile, this does nothing. More...
|
|
bool | AddLetter (Letter letter, int count) |
| Add the specified letter and count to the tile distribution dictionary. More...
|
|
void | Clear () |
| Clears all tiles from the tile pool. More...
|
|
bool | Contains (Letter letter) |
| Returns true if the tile pool currently contains the specified letter. This method does not look at spawned tiles. More...
|
|
bool | Contains (ILetterTile item) |
| Determines if the specified tile is contained within the tile pool. More...
|
|
void | CopyTo (ILetterTile[] array, int arrayIndex) |
| Copies the contents of the tile pool to a compatible one-dimensional array, starting at the specified index of the target array. More...
|
|
void | CreateTile (Letter letter) |
| Spawns a brand new tile into the pool, based on the specified letter. More...
|
|
void | CreateTilePool (Transform parent) |
| Creates the tile pool. More...
|
|
void | CreateTilePool () |
| Creates the tile pool. More...
|
|
void | DestroyAllTiles () |
| Destroys all tiles that were created by this tile pool (whether it is currently in the pool or not). More...
|
|
void | DestroyTile (ILetterTile tile) |
| Destroys the tile from the scene, if the tile is associated with the pool. More...
|
|
void | DestroyTiles (IList< ILetterTile > tiles) |
| Destroys a list of tiles from the scene, if the tiles are associated with the pool. More...
|
|
void | DistributeTiles (IWordGamePlayer player) |
| Distributes the specified amount of tiles to the specified IWordGamePlayer, up to the player's maximum tile count. More...
|
|
void | DistributeTiles (IWordGamePlayer player, int count) |
| Distributes the specified amount of tiles to the specified IWordGamePlayer, up to count or the player's maximum tile count (whichever comes first). More...
|
|
void | DistributeTiles (IWordGamePlayer player, Letter letter, int count) |
| Distributes the specified amount of tiles, with the specified letter, to the specified IWordGamePlayer, up to count or the player's maximum tile count (whichever comes first). More...
|
|
void | DistributeTiles (IWordGamePlayer player, IList< Letter > letters) |
| Distributes the specified list of letters to the specified IWordGamePlayer, up to the length of the specified letter list or the player's maximum tile count (whichever comes first). More...
|
|
IEnumerator< ILetterTile > | GetEnumerator () |
| Returns an enumerator that iterates through the tile pool (generic version). More...
|
|
int | GetOccurances (Letter letter) |
| Gets the amount of occurances of the specified letter within the tile pool. This method does not look at spawned tiles. More...
|
|
int | IndexOf (Letter letter) |
| Determines the index of a specific letter in the ITilePool. More...
|
|
int | IndexOf (ILetterTile item) |
| Determines the index of a specific tile in the tile pool. More...
|
|
void | Insert (ILetterTile item) |
| Inserts a tile into the pool at a random position, if it does not already contain it. More...
|
|
void | Insert (int index, ILetterTile item) |
| Inserts a letter tile into the pool at the specified position, if it does not already contain it. More...
|
|
int | LastIndexOf (Letter letter) |
|
bool | Remove (ILetterTile item) |
| Removes the specified tile from the tile pool. More...
|
|
void | RemoveAt (int index) |
| Removes the letter tile at the specified index. More...
|
|
bool | RemoveLetter (Letter letter) |
| Remove the specified letter from the tile distribution dictionary. More...
|
|
void | RemoveTiles (IList< ILetterTile > tiles) |
| Removes a list of tiles from the pool, if the tiles are associated with the pool. More...
|
|
void | ResetTilePool () |
| Resets the tile pool. More...
|
|
void | SaveTileDistribution () |
| Saves the tile distribution dictionary. More...
|
|
void | SetTiles (IList< ILetterTile > tiles) |
| Sets the tile pool. More...
|
|
T | GetComponentFromInterface< T > () |
| Gets a component from its interface type. More...
|
|
T | GetComponentInChildrenFromInterface< T > () |
| Gets a component from its interface type, searching through this GameObject and all children. More...
|
|
T[] | GetComponentsFromInterface< T > () |
| Gets all components from its interface type. More...
|
|
T[] | GetComponentsInChildrenFromInterface< T > () |
| Gets all components from its interface type, searching through this GameObject and all children. More...
|
|
void | CancelInvoke () |
| Cancels all Invoke calls on this MonoBehaviour. More...
|
|
void | CancelInvoke (string methodName) |
| Cancels all Invoke calls with name methodName on this behaviour. More...
|
|
int | GetInstanceID () |
| Returns the instance id of the object. More...
|
|
void | Invoke (string methodName, float time) |
| Invokes the method methodName in time seconds. More...
|
|
void | InvokeRepeating (string methodName, float time, float repeatRate) |
| Invokes the method methodName in time seconds. More...
|
|
bool | IsInvoking () |
| Is any invoke pending on this MonoBehaviour? More...
|
|
bool | IsInvoking (string methodName) |
| Is any invoke on methodName pending? More...
|
|
Coroutine | StartCoroutine (IEnumerator routine) |
| Starts a coroutine. More...
|
|
Coroutine | StartCoroutine (string methodName) |
| Starts a coroutine named methodName. More...
|
|
Coroutine | StartCoroutine (string methodName, object value) |
| Starts a coroutine named methodName. More...
|
|
void | StopAllCoroutines () |
| Stops all coroutines running on this behaviour. More...
|
|
void | StopCoroutine (string methodName) |
| Stops all coroutines named methodName running on this behaviour. More...
|
|
string | ToString () |
| Returns the name of the game object. More...
|
|
|
int | blankLetterCount [get, set] |
| The amount of blank letters in the tile distribution. More...
|
|
int | Count [get] |
| Returns the amount of tiles in the tile pool. More...
|
|
bool | IsReadOnly [get] |
| Returns true if the tile is read only. More...
|
|
WordGameLanguage | language [get, set] |
| The language associated with the tile pool. More...
|
|
string | languageIdentifier [get, set] |
| The language identifier associated with the tile pool. More...
|
|
int | lastDistributionCount [get] |
| Gets the last tile distribution count. This value is set before event callbacks. More...
|
|
WGBEvent | onTileDistribution [get, set] |
| This event fires when a tile is distributed from the tile pool. More...
|
|
int | poolMultiplier [get, set] |
| A multiplier for the tile distribution. Used to easily increase the amount of tiles created. More...
|
|
ILetterTile | this[int index] [get, set] |
| Gets or sets the letter tile at the specified index. More...
|
|
Dictionary< Letter, int > | tileDistribution [get] |
| Gets the tile distribution dictionary. More...
|
|
int | tileDistributionCount [get, set] |
| Gets or sets the amount of elements in the tile distribution. More...
|
|
GameObject | tilePrefab [get, set] |
| The tile prefab. This must contain a MonoBehaviour that implements ILetterTile. More...
|
|
object | userData [get, set] |
| Additional user data associated with this object. This is unused by default. More...
|
|
WordGameLanguage | language [get, set] |
| The language associated with the tile pool. More...
|
|
int | lastDistributionCount [get] |
| Gets the last tile distribution count. This value is set before event callbacks. More...
|
|
WGBEvent | onTileDistribution [get, set] |
| This event should fire when a tile is distributed from the tile pool. More...
|
|
Dictionary< Letter, int > | tileDistribution [get] |
| Gets the tile distribution dictionary. More...
|
|
bool | enabled [get, set] |
| Enabled Behaviours are Updated, disabled Behaviours are not. More...
|
|
GameObject | gameObject [get] |
| The game object this component is attached to. A component is always attached to a game object. More...
|
|
HideFlags | hideFlags [get, set] |
| Should the object be hidden, saved with the scene or modifiable by the user? More...
|
|
string | name [get, set] |
| The name of the object. More...
|
|
string | tag [get, set] |
| The tag of this game object. More...
|
|
Transform | transform [get] |
| The Transform attached to this GameObject. A component is always attached to a transform. More...
|
|
object | userData [get, set] |
| Additional user data associated with this object. This is unused by default. More...
|
|
|
static T | FindObjectOfTypeFromInterface< T > () |
| Finds the first object of interface type T. More...
|
|
static T[] | FindObjectsOfTypeFromInterface< T > () |
| Finds all objects of interface type T. More...
|
|
static T | InstantiateFromInterface< T > (T original) |
| Instantiate a GameObject from interface type T. More...
|
|
static T | InstantiateFromInterface< T > (T original, Vector3 position, Quaternion rotation) |
| Instantiate a GameObject from interface type T at the specified position and rotation. More...
|
|
static void | Log (object message, string prefix, string type) |
| Logs a prefixed message. More...
|
|
static void | Log (object message, string prefix, string type, Object context) |
| Logs a prefixed message, with context. More...
|
|
static void | LogError (object message, string prefix, string type) |
| Logs a prefixed erorr. More...
|
|
static void | LogError (object message, string prefix, string type, Object context) |
| Logs a prefixed exception, with context. More...
|
|
static void | LogException (System.Exception ex) |
| Logs an exception. More...
|
|
static void | LogException (System.Exception ex, Object context) |
| Logs an exception, with context. More...
|
|
static void | LogWarning (object message, string prefix, string type) |
| Logs a prefixed warning. More...
|
|
static void | LogWarning (object message, string prefix, string type, Object context) |
| Logs a prefixed warning, with context. More...
|
|
A class that manages an instance pool of letter tiles.
This class creates an instance pool based on a specific letter distribution. It implements IList<ILetterTile>.