Package-level declarations

Types

Link copied to clipboard

Action in a GOAP system.

Link copied to clipboard

GOAP and some other planners rely on conditions. Conditions may be true, false or unknown

Link copied to clipboard

Goal in a GOAP system.

Link copied to clipboard
class ConditionPlan(val actions: List<Action>, val goal: Goal, val worldState: ConditionWorldState) : Plan
Link copied to clipboard

Planner based on condition world states, such as GOAP.

Link copied to clipboard

Planning system based on actions and goals based on conditions, such as GOAP.

Link copied to clipboard

Conditions expressed as a map from condition name to determination

Link copied to clipboard
interface ConditionStep : Step

Step with preconditions

Link copied to clipboard
data class ConditionWorldState(val state: ConditionState = emptyMap()) : WorldState

Represents the state of the world at any time. World state is just a map. This class exposes operations on the state.

Link copied to clipboard
Link copied to clipboard

Determine the world state: the conditions that drive GOAP planning Our conditions can have 3 values: true, false or unknown. Unknown may be genuinely unknown, or it may mean that the condition has been lazily evaluated and needs to be evaluated again.