game
Interface BoardListener


public interface BoardListener

BoardListener is an interface for observers of changes to a Board.


Method Summary
 void pieceAdded(PieceLocation newLoc)
          Called after a new piece is added to the board.
 void pieceMoved(PieceLocation fromLoc, PieceLocation toLoc)
          Called after a piece already on the board moves to a new location.
 void pieceRemoved(PieceLocation oldLoc)
          Called after a piece is removed from the board.
 

Method Detail

pieceAdded

public void pieceAdded(PieceLocation newLoc)
Called after a new piece is added to the board.

Parameters:
newLoc - new piece and its new location

pieceRemoved

public void pieceRemoved(PieceLocation oldLoc)
Called after a piece is removed from the board.

Parameters:
oldLoc - old piece and its former location

pieceMoved

public void pieceMoved(PieceLocation fromLoc,
                       PieceLocation toLoc)
Called after a piece already on the board moves to a new location.

Parameters:
fromLoc - piece and its old location
toLoc - piece and its new location