BlaziumGoapActionPlanner๏ƒ

Inherits: RefCounted < Object

An internal backend node generating A* paths mapping GoapActions towards GoapGoals.

Description๏ƒ

BlaziumGoapActionPlanner is the primary logical processing engine used internally by BlaziumGoapAgent. It compiles a list of available actions and executes an AStar backward search resolving the sequence (the "Plan") that successfully transforms the current BlaziumGoapWorldState into the Goal's desired state requirements, choosing the shortest and cheapest cost structure.

This node operates completely autonomously beneath the Agent.

Methods๏ƒ

Array

get_plan(goal: BlaziumGoapGoal, blackboard: Dictionary = {})

void

set_actions(actions: Array[BlaziumGoapAction])


Method Descriptions๏ƒ

Array get_plan(goal: BlaziumGoapGoal, blackboard: Dictionary = {}) ๐Ÿ”—

Generates and returns an array of BlaziumGoapAction instances representing the most cost-effective path to satisfy the given goal, starting from the provided blackboard state natively. Returns an empty array if no path is found.


void set_actions(actions: Array[BlaziumGoapAction]) ๐Ÿ”—

Sets the pool of actions the planner is allowed to use during the A* graph traversal.