Class GoapPlanner
The
GoapPlanner
finds an action plan for a selected goal depending on the saved agent states.
The goal is either selected manually or automatically by relevance and reachability.
The action plan contains actions that are saved in the
GoapPlanner
plus actions of the individual
goal.
Inheritance
System.Object
GoapPlanner
Assembly: Mars.Components.dll
Syntax
public class GoapPlanner : object, IGoapPlanner
Constructors
GoapPlanner(IGoapAgentStates)
Declaration
public GoapPlanner(IGoapAgentStates agentStates)
Parameters
Properties
Actions
Declaration
public IList<IGoapAction> Actions { get; }
Property Value
AgentStates
Declaration
protected IGoapAgentStates AgentStates { get; }
Property Value
Goals
Declaration
public IList<IGoapGoal> Goals { get; }
Property Value
SelectedGoal
Declaration
public IGoapGoal SelectedGoal { get; }
Property Value
Methods
AddAction(IGoapAction)
Declaration
public void AddAction(IGoapAction action)
Parameters
AddGoal(IGoapGoal)
Declaration
public void AddGoal(IGoapGoal goal)
Parameters
Plan()
Declaration
public IList<IGoapAction> Plan()
Returns
Plan(IGoapGoal[])
Declaration
public IList<IGoapAction> Plan(params IGoapGoal[] goals)
Parameters
Returns
RemoveAction(IGoapAction)
Declaration
public void RemoveAction(IGoapAction action)
Parameters
RemoveGoal(IGoapGoal)
Declaration
public void RemoveGoal(IGoapGoal goal)
Parameters
Implements