Class GoapGoal
Inheritance
System.Object
GoapGoal
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()
Assembly: Mars.Components.dll
Syntax
public class GoapGoal : IGoapGoal
Constructors
|
Improve this Doc
View Source
GoapGoal(IGoapAgentStates, Single)
Declaration
public GoapGoal(IGoapAgentStates agentStates, float relevance = 0F)
Parameters
Properties
|
Improve this Doc
View Source
Actions
Declaration
public IList<IGoapAction> Actions { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<IGoapAction> |
|
|
Improve this Doc
View Source
AgentStates
Declaration
protected IGoapAgentStates AgentStates { get; }
Property Value
|
Improve this Doc
View Source
DesiredStates
Declaration
public IDictionary<IGoapStateKey, GoapStateProperty> DesiredStates { get; }
Property Value
|
Improve this Doc
View Source
Relevance
Declaration
public float Relevance { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
AddAction(IGoapAction)
Declaration
public void AddAction(IGoapAction action)
Parameters
|
Improve this Doc
View Source
AddOrUpdateDesiredState(GoapStateProperty)
Declaration
public void AddOrUpdateDesiredState(GoapStateProperty state)
Parameters
|
Improve this Doc
View Source
AddOrUpdateDesiredState<T>(GoapStateKey<T>, T)
Declaration
public void AddOrUpdateDesiredState<T>(GoapStateKey<T> key, T value)
Parameters
Type Parameters
|
Improve this Doc
View Source
IsSatisfied()
Declaration
public bool IsSatisfied()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveAction(IGoapAction)
Declaration
public void RemoveAction(IGoapAction action)
Parameters
|
Improve this Doc
View Source
RemoveDesiredState(GoapStateProperty)
Declaration
public void RemoveDesiredState(GoapStateProperty state)
Parameters
|
Improve this Doc
View Source
RemoveDesiredState(IGoapStateKey)
Declaration
public void RemoveDesiredState(IGoapStateKey key)
Parameters
|
Improve this Doc
View Source
UpdateRelevance()
Declaration
public virtual void UpdateRelevance()
Implements
Extension Methods