OptimizingGoapPlanner

abstract class OptimizingGoapPlanner(val worldStateDeterminer: WorldStateDeterminer) : ConditionPlanner

Abstract class for a Goap planner with common optimization.

Constructors

Link copied to clipboard
constructor(worldStateDeterminer: WorldStateDeterminer)

Properties

Functions

Link copied to clipboard

Return the best plan to any goal

Link copied to clipboard

Return the best plan to each goal from the present world state. The plans (one for each goal) are sorted by net value, descending.

Link copied to clipboard
override fun planToGoal(actions: Collection<Action>, goal: Goal): ConditionPlan?

Plan from here to the given goal

Link copied to clipboard
open override fun prune(planningSystem: ConditionPlanningSystem): ConditionPlanningSystem

Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state.

Link copied to clipboard
open override fun worldState(): ConditionWorldState

Current world state