Skip to main content

Reachability Actions

ReachabilityActions wraps the global collision map and pathing primitives.

Methods

  • isWalkable(WorldPoint) - true when the collision map has at least one traversable cardinal edge for the tile.
  • isObstacle(WorldPoint) - true for non-null points that are not walkable.
  • isInteractable(WorldPoint) / isInteractable(TileObject) - conservative walkability check for a target tile or object location.
  • isWalled(source, destination) / isDoored(source, destination) - true when adjacent tiles do not have a traversable edge.
  • hasDoor(source, Direction) - edge-block check using the exported directional flag model.
  • getCollisionFlag(WorldPoint) - bitmask: north=1, east=2, south=4, west=8.
  • canWalkBetween(source, destination) - cardinal one-tile movement check.
  • canWalk(Direction, startFlag, endFlag) - pure helper for directional flag checks.
  • getVisitedTiles(start[, maxTiles]) - flood-fill reachable tiles from a starting point.

Behavior notes:

  • This is a public API over existing static collision data; it does not replace the walker.
  • Door detection is conservative and collision-based. Live object-aware door interaction remains owned by the walker context.