cellSet method

void cellSet(
  1. int x,
  2. int y,
  3. bool value
)

Sets the value of a cell at the specified coordinates.

Does nothing if the coordinates are out of bounds.

Implementation

void cellSet(final int x, final int y, bool value) {
  if (_isValidXY(x, y)) {
    _data[y][x] = value;
  }
}