GOAPStrategyBuilder
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.
fun action(name: String, configure: ConfigureAction<ActionBuilder<State>>): GOAPStrategyBuilder<Input, Output, State>
Defines and configures an action available to the GOAP agent using the provided builder.
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.
fun goal(name: String, configure: ConfigureAction<GoalBuilder<State>>): GOAPStrategyBuilder<Input, Output, State>
Defines and configures a goal for the GOAP agent using the provided builder.