Class ClockworkMonoFlowField

A flow field for a single room that stores one direction per tile.

Constructors

Methods

Constructors

Methods

  • Get the direction for a given coordinate.

    Parameters

    • x: number
    • y: number

    Returns undefined | DirectionConstant

  • Given a monodirectional flow field (for a single room), find the path from a given position to the origin. Never paths through other rooms.

    Parameters

    • start: RoomPosition

    Returns ClockworkPath

  • Set the direction for a given coordinate.

    Parameters

    • x: number
    • y: number
    • Optionalvalue: DirectionConstant

    Returns void