Class PolicyGraphUpdateSystem
A system which extends a policy graph given newly explored actions and newly reached states
Inheritance
System.Object
PolicyGraphUpdateSystem
Namespace: Unity.AI.Planner
Syntax
public abstract class PolicyGraphUpdateSystem : ComponentSystem
Methods
IsTerminal(Entity)
Overridable method (with default support for IStateTermination) that determines if a state is terminal (i.e. should not be expanded further)
Declaration
protected virtual bool IsTerminal(Entity stateEntity)
Parameters
Type | Name | Description |
---|---|---|
Entity | stateEntity | Entity for the state |
Returns
Type | Description |
---|---|
System.Boolean | Whether the state is terminal or not |
OnCreateManager()
Declaration
protected override void OnCreateManager()
OnDestroyManager()
Declaration
protected override void OnDestroyManager()
OnUpdate()
Declaration
protected override void OnUpdate()
StateEquals(Entity, Entity)
Determine if two states are equal
Declaration
protected abstract bool StateEquals(Entity lhsStateEntity, Entity rhsStateEntity)
Parameters
Type | Name | Description |
---|---|---|
Entity | lhsStateEntity | Entity for the left-hand side of the state equality comparison |
Entity | rhsStateEntity | Entity for the right-hand side of the state equality comparison |
Returns
Type | Description |
---|---|
System.Boolean | Whether the states are equal |