Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlowFieldManager

Hierarchy

  • FlowFieldManager

Index

Constructors

constructor

  • Parameters

    • size: number

    Returns FlowFieldManager

Properties

delegate

flowFields

flowFields: Record<string, FlowField>

Methods

delete

  • delete(): void
  • Returns void

getHeight

  • getHeight(): number
  • Returns number

getMoveDirection

  • Parameters

    • x: number
    • y: number
    • z: number
    • moveType: MoveType

    Returns Direction

getOpposingMoveDirection

  • getOpposingMoveDirection(x: number, y: number, z: number, moveType: MoveType): Direction
  • Parameters

    • x: number
    • y: number
    • z: number
    • moveType: MoveType

    Returns Direction

getWidth

  • getWidth(): number
  • Returns number

isInFlowField

  • isInFlowField(point: IVector3): boolean
  • Parameters

    Returns boolean

isPlayerInFlowField

  • isPlayerInFlowField(player: Player): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

setDelegate

  • Parameters

    Returns void

setPlayers

  • setPlayers(flowFieldPlayers: Player[]): void
  • Parameters

    Returns void

update

  • update(): void
  • Returns void

updateTile

  • updateTile(tileX: number, tileY: number, tileZ: number): void
  • Parameters

    • tileX: number
    • tileY: number
    • tileZ: number

    Returns void

Generated using TypeDoc