All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.square.ServerTripleWordSquare

java.lang.Object
   |
   +----scrobble.square.Square
           |
           +----scrobble.square.TripleWordSquare
                   |
                   +----scrobble.square.ServerTripleWordSquare

public class ServerTripleWordSquare
extends TripleWordSquare
implements CountingSquare
The ServerTripleWordSquare class is a server version of the TripleWordSquare class. It implements the methods of interface CountingSquare to calculate the word scoring.


Constructor Index

 o ServerTripleWordSquare()
Creates a new ServerTripleWordSquare

Method Index

 o letterAction(Letter)
this methods is called when we calculate the score of a word.
 o main(String[])
 o wordAction(Word)
This method is called when we calculate the score of the word.

Constructors

 o ServerTripleWordSquare
 public ServerTripleWordSquare()
Creates a new ServerTripleWordSquare

Methods

 o 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
 o 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
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index