isWalkableAt method

bool isWalkableAt(
  1. dynamic x,
  2. dynamic y
)

Determine whether the node at the given position is walkable. (Also returns false if the position is outside the grid.) @param {number} x - The x coordinate of the node. @param {number} y - The y coordinate of the node. @return {boolean} - The walkability of the node.

Implementation

bool isWalkableAt(x, y) {
  return this.isInside(x, y) && this.nodes[y][x].walkable;
}