Class ClockworkMultiroomFlowField
Constructors
Methods
addDirection
- addDirection(pos: RoomPosition, direction: DirectionConstant): void
Parameters
- pos: RoomPosition
- direction: DirectionConstant
Returns void
get
- get(pos: RoomPosition): number
Returns number
getDirections
- getDirections(pos: RoomPosition): DirectionConstant[]
Returns DirectionConstant[]
getRooms
- getRooms(): string[]
Returns string[]
set
- set(pos: RoomPosition, value: number): void
Parameters
- pos: RoomPosition
- value: number
Returns void
setDirections
- setDirections(pos: RoomPosition, directions: DirectionConstant[]): void
Parameters
- pos: RoomPosition
- directions: DirectionConstant[]
Returns void
A flow field that spans multiple rooms, storing multiple directions per tile.