Words Library for Unity  1.0
A C# library for building and manipulating grids in Unity Game Engine.
Gamelogic.Words.WordGenerator Class Reference

A generator which provides a series of words from a dictionary, with equal probability to each More...

+ Inheritance diagram for Gamelogic.Words.WordGenerator:

Public Member Functions

 WordGenerator (IWordDictionary dictionary)
 Create a new word generator More...
 
String Next ()
 Returns a word from the dictionary More...
 

Public Attributes

readonly IWordDictionary dictionary
 

Detailed Description

A generator which provides a series of words from a dictionary, with equal probability to each

Constructor & Destructor Documentation

Gamelogic.Words.WordGenerator.WordGenerator ( IWordDictionary  dictionary)

Create a new word generator

Parameters
dictionaryThe dictionary to pull words from

Member Function Documentation

String Gamelogic.Words.WordGenerator.Next ( )

Returns a word from the dictionary

Returns
A randomly selected word from the dictionary

Member Data Documentation

readonly IWordDictionary Gamelogic.Words.WordGenerator.dictionary

The documentation for this class was generated from the following file: