Class GameMoves

java.lang.Object
  extended by GameMoves

public class GameMoves
extends java.lang.Object


Constructor Summary
GameMoves()
           
 
Method Summary
 void addMove(Move move)
           
 boolean undoMoves(Word word, Scrabble scrabble)
          Undoes a move which has the first occurrence of the word passed in (and also undoes all the moves performed after that)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameMoves

public GameMoves()
Method Detail

addMove

public void addMove(Move move)

undoMoves

public boolean undoMoves(Word word,
                         Scrabble scrabble)
Undoes a move which has the first occurrence of the word passed in (and also undoes all the moves performed after that)

Parameters:
word - The first occurrence of the word to undo (and every move after it)
scrabble - The Scrabble object
Returns:
Returns true if word was found false if word was not