Search
Preparing search index...
The search index is not available
@esengine/egret-framework
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"AI/Pathfinding/GOAP/AStar"
es
AStar
Class AStar
Hierarchy
AStar
Index
Properties
storage
Methods
calculate
Heuristic
plan
reconstruct
Plan
Properties
Static
storage
storage
:
AStarStorage
= new AStarStorage()
Methods
Static
calculate
Heuristic
calculate
Heuristic
(
fr
:
WorldState
, to
:
WorldState
)
:
number
Parameters
fr:
WorldState
to:
WorldState
Returns
number
Static
plan
plan
(
ap
:
ActionPlanner
, start
:
WorldState
, goal
:
WorldState
, selectedNodes
?:
AStarNode
[]
)
:
Action
[]
制定达到理想世界状态的行动计划
Parameters
ap:
ActionPlanner
start:
WorldState
goal:
WorldState
Default value
selectedNodes:
AStarNode
[]
= null
Returns
Action
[]
Static
reconstruct
Plan
reconstruct
Plan
(
goalNode
:
AStarNode
, selectedNodes
:
AStarNode
[]
)
:
Action
[]
内部函数,通过从最后一个节点到初始节点的追踪来重建计划。
Parameters
goalNode:
AStarNode
selectedNodes:
AStarNode
[]
Returns
Action
[]
Globals
"AI/
Pathfinding/GOAP/AStar"
es
AStar
storage
calculate
Heuristic
plan
reconstruct
Plan
AStar
Node
Generated using
TypeDoc