20 package net.sf.gridarta.model.validation.checks;
22 import java.awt.Point;
29 import org.jetbrains.annotations.NotNull;
42 private final boolean @NotNull [] @NotNull []
blocked;
49 final Size2D mapSize = mapModel.getMapArchObject().getMapSize();
50 final int width = mapSize.
getWidth();
52 blocked =
new boolean[width][height];
53 final Point pos =
new Point();
54 for (pos.y = 0; pos.y < height; pos.y++) {
55 for (pos.x = 0; pos.x < width; pos.x++) {
72 public boolean isBlocked(
final int x,
final int y) {
75 }
catch (
final IndexOutOfBoundsException ignored) {