ActionBuilder

Builder for Action instances.

Constructors

Link copied to clipboard
expect constructor()
constructor()
constructor()

Types

Link copied to clipboard
fun interface ExecuteSync<State>

Synchronous GOAP action execution.

Functions

Link copied to clipboard
expect open override fun belief(belief: Belief<State>): ActionBuilder<State>

Sets the belief for the action.

actual open override fun belief(belief: Belief<State>): ActionBuilder<State>

Sets the belief for the action.

actual open override fun belief(belief: Belief<State>): ActionBuilder<State>

Sets the belief for the action.

Link copied to clipboard
expect open override fun build(): Action<State>

Builds the Action.

actual open override fun build(): Action<State>

Builds the Action.

actual open override fun build(): Action<State>

Builds the Action.

Link copied to clipboard
expect open override fun cost(cost: Cost<State>): ActionBuilder<State>

Sets the cost function for the action.

actual open override fun cost(cost: Cost<State>): ActionBuilder<State>

Sets the cost function for the action.

actual open override fun cost(cost: Cost<State>): ActionBuilder<State>

Sets the cost function for the action.

Link copied to clipboard
expect open override fun description(description: String?): ActionBuilder<State>

Sets the description of the action.

actual open override fun description(description: String?): ActionBuilder<State>

Sets the description of the action.

actual open override fun description(description: String?): ActionBuilder<State>

Sets the description of the action.

Link copied to clipboard
expect open override fun execute(execute: Execute<State>): ActionBuilder<State>

Sets the execute function for the action.

actual open override fun execute(execute: Execute<State>): ActionBuilder<State>

Sets the execute function for the action.

actual open override fun execute(execute: Execute<State>): ActionBuilder<State>

Sets the execute function for the action.

Link copied to clipboard

Sets the synchronous execute function for the action.

Link copied to clipboard

Sets the synchronous execute function for the action.

Link copied to clipboard
expect open override fun name(name: String): ActionBuilder<State>

Sets the name of the action.

actual open override fun name(name: String): ActionBuilder<State>

Sets the name of the action.

actual open override fun name(name: String): ActionBuilder<State>

Sets the name of the action.

Link copied to clipboard
expect open override fun precondition(precondition: Condition<State>): ActionBuilder<State>

Sets the precondition for the action.

actual open override fun precondition(precondition: Condition<State>): ActionBuilder<State>

Sets the precondition for the action.

actual open override fun precondition(precondition: Condition<State>): ActionBuilder<State>

Sets the precondition for the action.