vooga.games.tronupdate.util
Class GridSpace
java.lang.Object
vooga.games.tronupdate.util.GridSpace
public class GridSpace
- extends java.lang.Object
Constructor Summary |
GridSpace(int totalRow,
int totalColumn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridSpace
public GridSpace(int totalRow,
int totalColumn)
getTotalRow
public int getTotalRow()
- get the total number of rows in the grid
- Returns:
getTotalColumn
public int getTotalColumn()
- get the total number of columns in the grid
- Returns:
fillGrid
public void fillGrid(int row,
int col)
isGridTaken
public boolean isGridTaken(int row,
int col)
gridsTaken
public boolean[][] gridsTaken()
updateGridsTaken
public void updateGridsTaken(boolean[][] grids)