Class ClockworkMultiroomFlowField

A flow field that spans multiple rooms, storing multiple directions per tile.

Constructors

Methods

  • Add a direction to the list of valid directions at a given position.

    Parameters

    • pos: RoomPosition
    • direction: DirectionConstant

    Returns void

  • Get the list of valid directions at a given position.

    Parameters

    • pos: RoomPosition

    Returns DirectionConstant[]

  • Set the flow field value at a given position.

    Parameters

    • pos: RoomPosition
    • value: number

    Returns void

  • Set the list of valid directions at a given position.

    Parameters

    • pos: RoomPosition
    • directions: DirectionConstant[]

    Returns void