GoapAction

Action in a GOAP system.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val cost: <Error class: unknown class>

Cost of performing this action Must be between 0 and 1 1 is the most expensive imaginable.

Link copied to clipboard
abstract val effects: EffectSpec

Expected effects of this action. World state should be checked afterward as these effects may not have been achieved

Link copied to clipboard
open override val knownConditions: Set<String>

The names of all conditions that are referenced by this step

Link copied to clipboard
abstract val name: String

Unique name of the step

Link copied to clipboard

Conditions that must be true for this step to execute

Link copied to clipboard
abstract val value: <Error class: unknown class>

Value of completing this step. From 0 (least valuable) to 1 (most valuable) Steps with 0 value will still be planned if necessary to achieve a result

Functions

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open fun isAchievable(currentState: GoapWorldState): Boolean

Whether the step is available in the current world state