All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.ClientBoard

java.lang.Object
   |
   +----scrobble.Board
           |
           +----scrobble.ClientBoard

public class ClientBoard
extends Board
implements GameLinkListener, ScrobbleConstants
ClientBoard.java herite de Board et implemente l'interface Displayable


Variable Index

 o boardPanel
The panel wich represents the Board
 o debug
if true, enables the printing of debug informations on the console.

Constructor Index

 o ClientBoard(BoardShape)
Creates e new ClientBoardl

Method Index

 o frameReceived(Object, LinkFrame)
Messaged when a new data frame is received by the GameLinkFilter object and this frame belongs to the groups the GameLinkListener asked to listen to.
 o getComponent()
Returns the GUI component representing this board.
 o verify(WordPositioner)
Verifies that the given word can be put on the board or not.

Variables

 o boardPanel
 JPanel boardPanel
The panel wich represents the Board

 o debug
 protected boolean debug
if true, enables the printing of debug informations on the console.

Constructors

 o ClientBoard
 public ClientBoard(BoardShape shape)
Creates e new ClientBoardl

Methods

 o verify
 public boolean verify(WordPositioner wordp) throws IllegalPositionException
Verifies that the given word can be put on the board or not.

Parameters:
wordp - the WordPositioner to be verified.
Returns:
true if the given word can be put on the board, and exception otherwise.
 o getComponent
 public Component getComponent()
Returns the GUI component representing this board.

 o frameReceived
 public void frameReceived(Object link,
                           LinkFrame frame)
Messaged when a new data frame is received by the GameLinkFilter object and this frame belongs to the groups the GameLinkListener asked to listen to.

Parameters:
link - the GameLink that actually received the frame.
frame - the frame that has just been received.
See Also:
GameLink, frameReceived

All Packages  Class Hierarchy  This Package  Previous  Next  Index