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

Methods

delete

  • delete(): void
  • Returns void

getFieldValue

  • getFieldValue(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

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