GOAPStrategyBuilder

Constructors

Link copied to clipboard
constructor(name: String, initializeState: (Input) -> State)

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>): GOAPStrategyBuilder<Input, Output, 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
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>): GOAPStrategyBuilder<Input, Output, State>

Defines a goal for the GOAP agent.

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