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

A generator which produces letters from an alphabet More...

+ Inheritance diagram for Gamelogic.Words.LetterGenerator:

Public Member Functions

 LetterGenerator (IWordAlphabet alphabet)
 Creates a letter generator for a specific alphabet with equal letter probability More...
 
 LetterGenerator (IWordAlphabet alphabet, IEnumerable< float > letterFrequencies)
 Creates a letter generator for a specific alphabet using the given relative letter frequencies More...
 
 LetterGenerator (IWordAlphabet alphabet, float[][] letterFrequencies)
 
string Next ()
 Gets a random letter More...
 

Detailed Description

A generator which produces letters from an alphabet

Constructor & Destructor Documentation

Gamelogic.Words.LetterGenerator.LetterGenerator ( IWordAlphabet  alphabet)

Creates a letter generator for a specific alphabet with equal letter probability

Gamelogic.Words.LetterGenerator.LetterGenerator ( IWordAlphabet  alphabet,
IEnumerable< float >  letterFrequencies 
)

Creates a letter generator for a specific alphabet using the given relative letter frequencies

Parameters
alphabetThe alphabet to use
letterFrequenciesThe letter frequencies
Gamelogic.Words.LetterGenerator.LetterGenerator ( IWordAlphabet  alphabet,
float  letterFrequencies[][] 
)

Member Function Documentation

string Gamelogic.Words.LetterGenerator.Next ( )

Gets a random letter


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