Skip to content

1681-engine / index / NavGrid

Interface: NavGrid ​

Defined in: src/nav/navGrid.ts:13

The ground a search walks: a width, a height and whether a body may stand on a tile. walkable is never asked about a tile outside the grid, so a game's own test needs no bounds check.

Properties ​

height ​

ts
readonly height: number;

Defined in: src/nav/navGrid.ts:15


width ​

ts
readonly width: number;

Defined in: src/nav/navGrid.ts:14

Methods ​

walkable() ​

ts
walkable(tx, ty): boolean;

Defined in: src/nav/navGrid.ts:16

Parameters ​

ParameterType
txnumber
tynumber

Returns ​

boolean

Released under the MIT License.