Util
Class WordTree

java.lang.Object
  extended by Util.WordTree

public class WordTree
extends java.lang.Object

A tree data structure containing the individual letters for a fully formed word in the Word Mole game

Author:
Chris Barton

Constructor Summary
WordTree()
           
 
Method Summary
 void cleanTree()
          Delete all children + root from the tree.
 void empty()
          Reset the selected Locations.
 java.util.ArrayList<java.lang.Integer> getLocations()
           
 java.lang.String getWord()
           
 void insert(Square s)
           
 Util.WordTree.SquareNode insertNode(Util.WordTree.SquareNode node, Square s)
           
 void remove(Square s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordTree

public WordTree()
Method Detail

insert

public void insert(Square s)

insertNode

public Util.WordTree.SquareNode insertNode(Util.WordTree.SquareNode node,
                                           Square s)

remove

public void remove(Square s)

cleanTree

public void cleanTree()
Delete all children + root from the tree.


getWord

public java.lang.String getWord()

getLocations

public java.util.ArrayList<java.lang.Integer> getLocations()

empty

public void empty()
Reset the selected Locations.