us.asciiroth.client.board
Class BoardReader

java.lang.Object
  extended by us.asciiroth.client.board.BoardReader

public class BoardReader
extends java.lang.Object

The board reader is used by the editor which does not need the player information, so this is stored in the PlayerData object and only read as part of loading a game.


Constructor Summary
BoardReader()
           
 
Method Summary
 void read(BoardView view, Player player, Board board, java.lang.String json, com.google.gwt.user.client.Command command)
          Load the map and place the player at the indicated coordinates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardReader

public BoardReader()
Method Detail

read

public void read(BoardView view,
                 Player player,
                 Board board,
                 java.lang.String json,
                 com.google.gwt.user.client.Command command)
Load the map and place the player at the indicated coordinates.

Parameters:
view - The view; optional but if it exists, the TD element will be cached in the cell for performance reasons
player - the current player instance, which communicates the players X/Y position as well as the URL of the board
board - the board instance to initialize
json - the json to deserialize convert to the board
command - an optional callback command to execute when deserialization is done

0.7

2009 Alx Dark