plan
plan(
actions,initial,goal):GoapAction[] |null
Defined in: src/modules/goap/goap.ts:66
Find the least-cost sequence of actions that transforms initial
into a state satisfying goal, via A* over symbolic world-states.
Returns the ordered plan, [] if the goal already holds, or null if
no plan exists.
Parameters
Section titled “Parameters”actions
Section titled “actions”readonly GoapAction[]
initial
Section titled “initial”Returns
Section titled “Returns”GoapAction[] | null