yolkbot
learn
community
Preparing search index...
Pathfinding
Class Pathfinding
Index
Constructors
constructor
Methods
go
To
process
Movement
simulate
update
Properties
active
Node
active
Node
Idx
active
Path
astar
bot
game
node
List
Constructors
constructor
new
Pathfinding
(
bot
:
Bot
,
game
:
BaseGameMode
,
rawMap
:
MapJSON
)
:
Pathfinding
Parameters
bot
:
Bot
game
:
BaseGameMode
rawMap
:
MapJSON
Returns
Pathfinding
Methods
go
To
goTo
(
targetPosition
:
Position
)
:
void
Runs pathfinding to a specific
Position
Parameters
targetPosition
:
Position
The position to pathfind to
Returns
void
process
Movement
processMovement
(
ndx
:
number
,
ndy
:
number
,
ndz
:
number
)
:
void
Parameters
ndx
:
number
ndy
:
number
ndz
:
number
Returns
void
simulate
simulate
(
currentIdx
:
number
)
:
void
Parameters
currentIdx
:
number
Returns
void
update
update
()
:
void
Returns
void
Properties
active
Node
activeNode
:
MapNode
|
null
= null
active
Node
Idx
activeNodeIdx
:
number
= -1
active
Path
activePath
:
MapNode
[]
|
null
= null
astar
astar
:
AStar
bot
bot
:
Bot
game
game
:
BaseGameMode
node
List
nodeList
:
NodeList
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
go
To
process
Movement
simulate
update
Properties
active
Node
active
Node
Idx
active
Path
astar
bot
game
node
List
learn
community
yolkbot
Loading...
Runs pathfinding to a specific Position