bill.apps.wordmaker
Class WordMakerLetter

java.lang.Object
  |
  +--bill.apps.wordutil.Letter
        |
        +--bill.apps.wordmaker.WordMakerLetter

public class WordMakerLetter
extends Letter

This class is used to contain information about a letter that is available to be a part of a word. This class is specific to the WordMaker application.


Fields inherited from class bill.apps.wordutil.Letter
_lastLetter
 
Constructor Summary
WordMakerLetter(WordMaker maker, char character, int index)
          The creator.
 
Method Summary
 WordMakerLetter getNextLetter()
          Gets the next candidate letter in a word.
 
Methods inherited from class bill.apps.wordutil.Letter
equals, getCharacter, getIndex, isUsed, setUsed, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WordMakerLetter

public WordMakerLetter(WordMaker maker,
                       char character,
                       int index)
The creator. Sets class variables to and specified values.
Parameters:
maker - The WordMaker clas that contains the letters.
character - The character represented by this letter
index - The index (0 based) of the letter in the list of letters
Method Detail

getNextLetter

public WordMakerLetter getNextLetter()
Gets the next candidate letter in a word. This is done by checking for the next unused letter in the letter list.
Returns:
The letter that was found, or null if one could not be found.