vooga.games.tronupdate.util
Class GridSpace

java.lang.Object
  extended by vooga.games.tronupdate.util.GridSpace

public class GridSpace
extends java.lang.Object


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

Constructor Detail

GridSpace

public GridSpace(int totalRow,
                 int totalColumn)
Method Detail

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)