Function: cast_planner()
ts
function cast_planner(this: void, base_action: action_base): action_planner;Cast a base action to an action planner when it is implemented as a planner action.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | void | - |
base_action | action_base | Action to cast. |
Returns
Planner interface for the action, or null when the action is not planner-backed.
Remarks
Returns the planner interface only for actions implemented by planner_action; other action instances are not planner-backed.