Class games.Battle.shared.sys.Board
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.shared.sys.Board
java.lang.Object
|
+----games.Battle.shared.sys.Board
- public class Board
- extends Object
Board is an abstract base class for the
client and server's representations of the
game board. It defines the minimal interface that the board must
have in any client or server.
-
Board()
- Builds a generic board and fills it with cells.
-
clearModified()
- clear the modified flag for all cells on the board
-
clearTerrainModified()
- clear the terrainModified flag for all cells on the board
-
getCell(int, int)
- return a reference to the cell at the given
row and column
-
getGrid()
- Return a reference to this board's grid object
-
makeCell(int, int)
- implemented in derived classes, returns an
instance of a cell for a particular board class
Board
public Board()
- Builds a generic board and fills it with cells. The abstract
method makeCell(r,c) is called to actually obtain a cell. This
method must be defined in derived classes to return a particular
(client vs. server) cell type.
getGrid
public Grid getGrid()
- Return a reference to this board's grid object
makeCell
public abstract Cell makeCell(int r,
int c)
- implemented in derived classes, returns an
instance of a cell for a particular board class
- Parameters:
- r - the row
- c - the column
getCell
public Cell getCell(int r,
int c)
- return a reference to the cell at the given
row and column
- Parameters:
- r - the row
- c - the column
clearModified
public void clearModified()
- clear the modified flag for all cells on the board
clearTerrainModified
public void clearTerrainModified()
- clear the terrainModified flag for all cells on the board
All Packages Class Hierarchy This Package Previous Next Index