Class KaijuMovementAction<T>
Class for movement actions.
Inheritance
System.Object
KaijuMovementAction<T>
Inherited Members
Namespace: KaijuSolutions.Agents.Behavior.Movement
Syntax
[Serializable]
public abstract class KaijuMovementAction<T> : KaijuAgentGraphAction where T : KaijuMovement
Type Parameters
| Name | Description |
|---|---|
| T | The type of movement this is for. |
Fields
configuration
The movement configuration to use.
Declaration
public BlackboardVariable<KaijuMovementConfiguration> configuration
Field Value
| Type | Description |
|---|---|
| BlackboardVariable<KaijuMovementConfiguration> |
Properties
Movement
The movement.
Declaration
protected T Movement { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
CreateMovement()
Create the movement.
Declaration
protected abstract T CreateMovement()
Returns
| Type | Description |
|---|---|
| T | The movement that was created. |
DisposeMovement()
Ensure an existing movement is disposed of.
Declaration
protected void DisposeMovement()
GetMovementReference()
Get the movement instance to configure.
Declaration
protected abstract BlackboardVariable<KaijuMovementReference> GetMovementReference()
Returns
| Type | Description |
|---|---|
| BlackboardVariable<KaijuMovementReference> | The movement reference variable. |
OnEnd()
OnEnd is called when the node has stopped running.
Declaration
protected override void OnEnd()
OnStart()
OnStart is called when the node starts running.
Declaration
protected override Status OnStart()
Returns
| Type | Description |
|---|---|
| Status | The status of the node. |
Overrides
OnUpdate()
OnUpdate is called each frame while the node is running.
Declaration
protected override Status OnUpdate()
Returns
| Type | Description |
|---|---|
| Status | The status of the node. |