Skip to content

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.

readonly GoapAction[]

WorldState

WorldState

GoapAction[] | null