Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlowField

Hierarchy

  • FlowField

Implements

Index

Constructors

constructor

  • new FlowField(size: number, tileX: number, tileY: number, tileZ: number, moveType: MoveType): FlowField
  • Parameters

    • size: number
    • tileX: number
    • tileY: number
    • tileZ: number
    • moveType: MoveType

    Returns FlowField

Properties

flowField

flowField: ByteGrid

Methods

updateField

  • updateField(tileX: number, tileY: number, offsetX: number, offsetY: number): void
  • Parameters

    • tileX: number
    • tileY: number
    • offsetX: number
    • offsetY: number

    Returns void

updatePenaltyField

  • updatePenaltyField(): void

updateTile

  • updateTile(gridIndex: number, tile: ITile): void
  • Parameters

    • gridIndex: number
    • tile: ITile

    Returns void

Generated using TypeDoc