Class LetterMove

java.lang.Object
  extended byLetterMove

public class LetterMove
extends java.lang.Object

This class defines a LetterMove - a specific Letter coupled with x and y co-ordinates. The class implements methods to get and set a LetterMove. Multiple LetterMoves make up a Move

Version:
2.0
Author:
3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
See Also:
LetterMove, Word

Constructor Summary
LetterMove(int xx, int yy, Letter l)
           
 
Method Summary
 java.util.List findHorizontalWords(Board b)
           
 java.util.List findVerticalWords(Board b)
           
 Letter getLetter()
           
 int getScore(Board b)
           
 int getX()
           
 int getY()
           
 java.lang.String toString()
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LetterMove

public LetterMove(int xx,
                  int yy,
                  Letter l)
Method Detail

getX

public int getX()

getY

public int getY()

getLetter

public Letter getLetter()

findHorizontalWords

public java.util.List findHorizontalWords(Board b)

findVerticalWords

public java.util.List findVerticalWords(Board b)

getScore

public int getScore(Board b)

toString

public java.lang.String toString()

toXml

public java.lang.String toXml()