Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
easystarjs
js
Class js
Index
Methods
avoidAdditionalPoint
calculate
disableDiagonals
enableDiagonals
findPath
new
setAcceptableTiles
setGrid
setIterationsPerCalculation
setTileCost
stopAvoidingAdditionalPoint
stopAvoidingAllAdditionalPoints
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
(
)
Globals
easystarjs
Position
js
avoidAdditionalPoint
calculate
disableDiagonals
enableDiagonals
findPath
new
setAcceptableTiles
setGrid
setIterationsPerCalculation
setTileCost
stopAvoidingAdditionalPoint
stopAvoidingAllAdditionalPoints