goap

fun <State : GoapAgentState<*, *>> goap(stateType: TypeToken, init: GOAPPlannerBuilder<State>.() -> Unit): GOAPPlanner<State>(source)

Deprecated

Use AIAgentStrategy.builder(name).goap() DSL instead.

Creates a GOAPPlanner using a DSL for defining actions.

Return

A new GOAPPlanner instance with the defined actions.

Parameters

stateType

TypeToken of the State.

init

The initialization block for the builder.