OptimizingGoapPlanner

abstract class OptimizingGoapPlanner(val worldStateDeterminer: WorldStateDeterminer) : GoapPlanner

Abstract class for a Goap planner with common optimization.

Inheritors

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): GoapPlan?

Plan from here to the given goal

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

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(): GoapWorldState

Current world state