Util
Class WordTree
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordTree
public WordTree()
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.