us.asciiroth.client.ui
Class BoardView

java.lang.Object
  extended by us.asciiroth.client.ui.BoardView
All Implemented Interfaces:
CellListener

public class BoardView
extends java.lang.Object
implements CellListener


Constructor Summary
BoardView(HasBoard hasBoard)
           
 
Method Summary
 void addMouseCellListener(MouseCellListener listener)
           
 com.google.gwt.user.client.Element getElementAt(int mapX, int mapY)
           
 int getHeight()
           
 void onCellChanged(Cell cell)
          Event notification that a cell has changed in some way: terrain has been transformed, items have been picked up or dropped, effects are flying over the cell, or similar.
 void onRerender(Cell cell, Piece piece, Symbol symbol)
          Event notification that a piece would like to rerender itself at the given location.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardView

public BoardView(HasBoard hasBoard)
Method Detail

addMouseCellListener

public void addMouseCellListener(MouseCellListener listener)

getElementAt

public com.google.gwt.user.client.Element getElementAt(int mapX,
                                                       int mapY)

getHeight

public int getHeight()

onCellChanged

public void onCellChanged(Cell cell)
Description copied from interface: CellListener
Event notification that a cell has changed in some way: terrain has been transformed, items have been picked up or dropped, effects are flying over the cell, or similar.

Specified by:
onCellChanged in interface CellListener
Parameters:
cell - the cell that has changed

onRerender

public void onRerender(Cell cell,
                       Piece piece,
                       Symbol symbol)
Description copied from interface: CellListener
Event notification that a piece would like to rerender itself at the given location. Used by animated piece.

Specified by:
onRerender in interface CellListener

0.7

© 2009 Alx Dark