Class ClockworkFlowField

A flow field for a single room that stores multiple directions per tile.

Constructors

Methods

  • Add a direction to the list of valid directions for a given coordinate.

    Parameters

    • x: number
    • y: number
    • direction: DirectionConstant

    Returns void

  • Get the internal value for a given coordinate.

    Parameters

    • x: number
    • y: number

    Returns number

  • Get the list of valid directions for a given coordinate.

    Parameters

    • x: number
    • y: number

    Returns DirectionConstant[]

  • Set the internal value for a given coordinate.

    Parameters

    • x: number
    • y: number
    • value: number

    Returns void

  • Set the list of valid directions for a given coordinate.

    Parameters

    • x: number
    • y: number
    • directions: DirectionConstant[]

    Returns void