GOAPPlannerBuilder

open class GOAPPlannerBuilder<State : GoapAgentState<*, *>> @JvmOverloads constructor(stateType: TypeToken? = null)(source)

GOAPPlanner DSL builder.

Constructors

Link copied to clipboard
constructor(stateType: TypeToken? = null)

Functions

Link copied to clipboard
fun action(name: String, description: String? = null, precondition: Condition<State>, belief: Belief<State>, cost: Cost<State> = { 1.0 }, execute: Execute<State>): GOAPPlannerBuilder<State>

Defines an action available to the GOAP agent.

Defines and configures an action available to the GOAP agent using the provided builder.

Link copied to clipboard

Builds the GOAPPlanner.

Link copied to clipboard
fun goal(name: String, description: String? = null, value: (Double) -> Double = { cost -> exp(-cost) }, cost: Cost<State> = { 1.0 }, condition: Condition<State>): GOAPPlannerBuilder<State>

Defines a goal for the GOAP agent.

Defines and configures a goal for the GOAP agent using the provided builder.