cellBusyForItem method

bool cellBusyForItem(
  1. NodeOutput item,
  2. int x,
  3. int y
)

Implementation

bool cellBusyForItem(NodeOutput item, int x, int y) {
  if (this.s.length == 0 || y >= this.s.length) {
    return false;
  }
  final cell = s[y][x];
  if (cell == null) return false;
  if (!cell.isFull &&
      item.isAnchor &&
      cell.margin != null &&
      cell.margin != item.anchorMargin) return false;
  return true;
}