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
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Services.Planning
Assembly: Mars.Components.dll
Syntax
public class GoapPlanner : IGoapPlanner
Constructors
| Improve this Doc View SourceGoapPlanner(IGoapAgentStates)
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.
Declaration
public GoapPlanner(IGoapAgentStates agentStates)
Parameters
Type | Name | Description |
---|---|---|
IGoapAgentStates | agentStates |
Properties
| Improve this Doc View SourceActions
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.
Declaration
public IList<IGoapAction> Actions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IGoapAction> |
AgentStates
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.
Declaration
protected IGoapAgentStates AgentStates { get; }
Property Value
Type | Description |
---|---|
IGoapAgentStates |
Goals
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.
Declaration
public IList<IGoapGoal> Goals { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<IGoapGoal> |
SelectedGoal
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.
Declaration
public IGoapGoal SelectedGoal { get; }
Property Value
Type | Description |
---|---|
IGoapGoal |
Methods
| Improve this Doc View SourceAddAction(IGoapAction)
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.
Declaration
public void AddAction(IGoapAction action)
Parameters
Type | Name | Description |
---|---|---|
IGoapAction | action |
AddGoal(IGoapGoal)
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.
Declaration
public void AddGoal(IGoapGoal goal)
Parameters
Type | Name | Description |
---|---|---|
IGoapGoal | goal |
Plan()
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.
Declaration
public IList<IGoapAction> Plan()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IGoapAction> |
Plan(IGoapGoal[])
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.
Declaration
public IList<IGoapAction> Plan(params IGoapGoal[] goals)
Parameters
Type | Name | Description |
---|---|---|
IGoapGoal[] | goals |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IGoapAction> |
RemoveAction(IGoapAction)
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.
Declaration
public void RemoveAction(IGoapAction action)
Parameters
Type | Name | Description |
---|---|---|
IGoapAction | action |
RemoveGoal(IGoapGoal)
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.
Declaration
public void RemoveGoal(IGoapGoal goal)
Parameters
Type | Name | Description |
---|---|---|
IGoapGoal | goal |