us.asciiroth.client.board
Class BoardReader
java.lang.Object
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.
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 |
BoardReader
public BoardReader()
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 reasonsplayer
- the current player instance, which communicates the players X/Y
position as well as the URL of the boardboard
- the board instance to initializejson
- the json to deserialize convert to the boardcommand
- an optional callback command to execute when deserialization is done
© 2009 Alx Dark