ConditionWorldState

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

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val state: ConditionState

Functions

Link copied to clipboard
abstract operator fun plus(pair: <Error class: unknown class><String, ConditionDetermination>): ConditionWorldState

Add a single condition determination

abstract operator fun plus(action: ConditionAction): ConditionWorldState

Apply an action to a state, returning the resulting new state.

Link copied to clipboard
abstract infix fun satisfiesPreconditions(preconditions: EffectSpec): Boolean

Are all preconditions satisfied in this world state?

Link copied to clipboard
Link copied to clipboard
abstract fun variants(unknownCondition: String): Collection<ConditionWorldState>

Generate variants with different definite values for the given condition

Link copied to clipboard

Generate all possible changes to the world state where only one condition is changed