Skip to content

Grid2

Defined in: grid2.ts:9

Abstract base class for all 2D grids. Subclasses implement getCell, contains, and setCell; canPlaceRect, placeRect, and getRectNeighbors are provided here.

T

new Grid2<T>(): Grid2<T>

Grid2<T>

canPlaceRect(rect): boolean

Defined in: grid2.ts:14

GridRect2

boolean


abstract contains(coord): boolean

Defined in: grid2.ts:11

GridCoord2

boolean


abstract getCell(coord): T | undefined

Defined in: grid2.ts:10

GridCoord2

T | undefined


getRectNeighbors(rect): Set<T>

Defined in: grid2.ts:50

GridRect2

Set<T>


placeRect(rect, value): void

Defined in: grid2.ts:39

GridRect2

T

void


abstract setCell(coord, value): void

Defined in: grid2.ts:12

GridCoord2

T

void