Class FilterMicrobeVisionSensorAction
Action to filter to specific
Inheritance
System.Object
FilterMicrobeVisionSensorAction
Namespace: KaijuSolutions.Agents.Behavior.Exercises.Microbes
Syntax
[Serializable]
public abstract class FilterMicrobeVisionSensorAction : MicrobeVisionSensorAction
Properties
Current
The
Declaration
protected Microbe Current { get; }
Property Value
| Type | Description |
|---|---|
| Microbe |
Methods
FilterCondition(Microbe)
How to filter for
Declaration
protected abstract bool FilterCondition(Microbe microbe)
Parameters
| Type | Name | Description |
|---|---|---|
| Microbe | microbe | The |
Returns
| Type | Description |
|---|---|
| System.Boolean | If this passed the filter or not. |
HandleSensor()
OnUpdate is called each frame while the node is running.
Declaration
protected override Status HandleSensor()
Returns
| Type | Description |
|---|---|
| Status | The status of the node. |
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. |