Constructors
Methods
addDirection
- addDirection(x: number, y: number, direction: DirectionConstant): void
Parameters
- x: number
- y: number
- direction: DirectionConstant
Returns void
get
- get(x: number, y: number): number
Returns number
getDirections
- getDirections(x: number, y: number): DirectionConstant[]
Returns DirectionConstant[]
set
- set(x: number, y: number, value: number): void
Parameters
- x: number
- y: number
- value: number
Returns void
setDirections
- setDirections(x: number, y: number, directions: DirectionConstant[]): void
Parameters
- x: number
- y: number
- directions: DirectionConstant[]
Returns void
A flow field for a single room that stores multiple directions per tile.