All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----scrobble.square.Square | +----scrobble.square.DoubleLetterSquare | +----scrobble.square.ServerDoubleLetterSquare
ServerDoubleLetterSquare
class is a server version of the
DoubleLetterSquare class. It implements the methods of interface
CountingSquare
to calculate the word scoring.
-
ServerDoubleLetterSquare()
- Creates a new ServerDoubleLetterSquare
-
letterAction(Letter)
- This methods is called when we calculate the score of a word.
-
main(String[])
-
-
wordAction(Word)
- This method is called when we calculate the score of the word.
ServerDoubleLetterSquare
public ServerDoubleLetterSquare()
- Creates a new ServerDoubleLetterSquare
letterAction
public int letterAction(Letter letter)
- This methods is called when we calculate the score of a word.
- Parameters:
- letter - the letter on which the Square acts
- Returns:
- the value of letter on this square
- Overrides:
- letterAction in class DoubleLetterSquare
wordAction
public int wordAction(Word word)
- This method is called when we calculate the score of the word.
- Parameters:
- word - the word on which the Square acts
- Returns:
- the value of word on this square
- Overrides:
- wordAction in class DoubleLetterSquare
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index