Class js

Index

Methods

Methods

public avoidAdditionalPoint(x: number, y: number)

Parameters

  • x: number
  • y: number

public calculate()

public disableDiagonals()

public enableDiagonals()

public findPath(startX: number, startY: number, endX: number, endY: number, callback: (path: "easystarjs".Position[]) => void)

Parameters

  • startX: number
  • startY: number
  • endX: number
  • endY: number
  • callback: (path: "easystarjs".Position[]) => void

public new(): js

Returns

js

public setAcceptableTiles(tiles: Array<number>)

Parameters

  • tiles: Array<number>

public setGrid(grid: Array<number[]>)

Parameters

  • grid: Array<number[]>

public setIterationsPerCalculation(iterations: number)

Parameters

  • iterations: number

public setTileCost(tileType: number, multiplicativeCost: number)

Parameters

  • tileType: number
  • multiplicativeCost: number

public stopAvoidingAdditionalPoint(x: number, y: number)

Parameters

  • x: number
  • y: number

public stopAvoidingAllAdditionalPoints()