Class GoapAgentStates
Standard implementation of an
IGoapAgentStates
.
Inheritance
System.Object
GoapAgentStates
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 GoapAgentStates : IGoapAgentStates
Constructors
| Improve this Doc View SourceGoapAgentStates()
Standard implementation of an
IGoapAgentStates
.
Declaration
public GoapAgentStates()
Properties
| Improve this Doc View SourceStates
Standard implementation of an
IGoapAgentStates
.
Declaration
public Dictionary<IGoapStateKey, GoapStateProperty> States { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<IGoapStateKey, GoapStateProperty> |
Methods
| Improve this Doc View SourceAddOrUpdateState(GoapStateProperty)
Standard implementation of an
IGoapAgentStates
.
Declaration
public void AddOrUpdateState(GoapStateProperty state)
Parameters
Type | Name | Description |
---|---|---|
GoapStateProperty | state |
AddOrUpdateState<T>(GoapStateKey<T>, T)
Standard implementation of an
IGoapAgentStates
.
Declaration
public void AddOrUpdateState<T>(GoapStateKey<T> key, T value)
Parameters
Type | Name | Description |
---|---|---|
GoapStateKey<T> | key | |
T | value |
Type Parameters
Name | Description |
---|---|
T |
RemoveState(GoapStateProperty)
Standard implementation of an
IGoapAgentStates
.
Declaration
public void RemoveState(GoapStateProperty state)
Parameters
Type | Name | Description |
---|---|---|
GoapStateProperty | state |
RemoveState(IGoapStateKey)
Standard implementation of an
IGoapAgentStates
.
Declaration
public void RemoveState(IGoapStateKey stateKey)
Parameters
Type | Name | Description |
---|---|---|
IGoapStateKey | stateKey |