Skip to content

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

クラス: OrthoGridSystem ​

定義: grid-system/ortho-grid.ts:86

実装 ​

  • System

コンストラクター ​

コンストラクター ​

new OrthoGridSystem(coordinator): OrthoGridSystem

定義: grid-system/ortho-grid.ts:90

パラメータ ​

coordinator ​

Coordinator

戻り値 ​

OrthoGridSystem

プロパティ ​

entities ​

entities: Set<number>

定義: grid-system/ortho-grid.ts:87

の実装 ​

System.entities

メソッド ​

addEntityToGridCell() ​

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

定義: grid-system/ortho-grid.ts:124

パラメータ ​

grid ​

number

row ​

number

column ​

number

entity ​

number

direction ​

"top" | "bottom"

displace ​

boolean = false

戻り値 ​

void


getCellEntityAt() ​

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

定義: grid-system/ortho-grid.ts:218

パラメータ ​

grid ​

number

row ​

number

column ​

number

戻り値 ​

number | null


getEntireGridEntities() ​

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

定義: grid-system/ortho-grid.ts:178

パラメータ ​

grid ​

number

戻り値 ​

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