Skip to content

hasLineOfSight

hasLineOfSight(grid, x0, y0, x1, y1): boolean

Defined in: src/modules/grid-based/visibility.ts:163

Returns true when all intermediate line tiles are both in-bounds and transparent. Origin and destination tiles are ignored for blocking checks.

VisibilityGrid

number

number

number

number

boolean