cellGet method

bool cellGet(
  1. int x,
  2. int y
)

Retrieves the value of a cell at the specified coordinates.

Returns false if the coordinates are out of bounds.

Implementation

bool cellGet(final int x, final int y) {
  if (_isValidXY(x, y)) {
    return _data[y][x];
  }
  return false;
}