Skip to content

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

ParameterTypeDescription
thisvoid-
base_actionaction_baseAction to cast.

Returns

action_planner

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.