goap

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

Creates a GOAPPlanner using a DSL for defining actions.

Return

A new GOAPPlanner instance with the defined actions.

Parameters

stateType

KType of the State.

init

The initialization block for the builder.