Options
All
  • Public
  • Public/Protected
  • All
Menu
param toX

Target X coord

param toY

Target Y coord

param passableCallback

Callback to determine map passability

param [options]
param [options.topology=8]

Hierarchy

Index

Constructors

constructor

Properties

_dirs

_dirs: number[][]

_options

_options: Options

_passableCallback

_passableCallback: PassableCallback

_toX

_toX: number

_toY

_toY: number

Methods

_getNeighbors

  • _getNeighbors(cx: number, cy: number): number[][]

Abstract compute

  • Compute a path from a given point

    Parameters

    • fromX: number
    • fromY: number
    • callback: ComputeCallback

      Will be called for every path item with arguments "x" and "y"

    Returns void

Generated using TypeDoc