Skip to content

@ue-too/board-game-engine / index / OrthoGridSystem

Class: OrthoGridSystem ​

Defined in: grid-system/ortho-grid.ts:86

Implements ​

  • System

Constructors ​

Constructor ​

new OrthoGridSystem(coordinator): OrthoGridSystem

Defined in: grid-system/ortho-grid.ts:90

Parameters ​

coordinator ​

Coordinator

Returns ​

OrthoGridSystem

Properties ​

entities ​

entities: Set<number>

Defined in: grid-system/ortho-grid.ts:87

Implementation of ​

System.entities

Methods ​

addEntityToGridCell() ​

addEntityToGridCell(grid, row, column, entity, direction, displace): void

Defined in: grid-system/ortho-grid.ts:124

Parameters ​

grid ​

number

row ​

number

column ​

number

entity ​

number

direction ​

"top" | "bottom"

displace ​

boolean = false

Returns ​

void


getCellEntityAt() ​

getCellEntityAt(grid, row, column): number | null

Defined in: grid-system/ortho-grid.ts:218

Parameters ​

grid ​

number

row ​

number

column ​

number

Returns ​

number | null


getEntireGridEntities() ​

getEntireGridEntities(grid): { entities: (number | null)[][]; hasHole: boolean; } | null

Defined in: grid-system/ortho-grid.ts:178

Parameters ​

grid ​

number

Returns ​

{ entities: (number | null)[][]; hasHole: boolean; } | null