Package com.embabel.plan.goap
Interface WorldStateDeterminer
-
- All Implemented Interfaces:
public interface WorldStateDeterminerDetermine 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWorldStateDeterminer.Companion
-
Method Summary
Modifier and Type Method Description abstract GoapWorldStatedetermineWorldState()Determine world state. abstract ConditionDeterminationdetermineCondition(String condition)Determine an individual condition, disabling any caching. -
-
Method Detail
-
determineWorldState
abstract GoapWorldState determineWorldState()
Determine world state. Optimization is permitted. Implementations may choose to return UNKNOWN for expensive conditions, which the planner should invoke lazily
-
determineCondition
abstract ConditionDetermination determineCondition(String condition)
Determine an individual condition, disabling any caching. Any previously UNKNOWN condition must be re-evaluated if possible.
-
-
-
-