Interface IPrey
Namespace: Eco.Simulation.ExternalInputs
Assembly: Eco.Simulation.dll
Syntax
public interface IPrey : INetObjectPosition, INetObject, IPositionAndBounds
Methods
OnPredatorDetected(IPredator, Single)
Declaration
virtual void OnPredatorDetected(IPredator predator, float distance)
Parameters
Type | Name | Description |
---|---|---|
IPredator | predator | |
System.Single | distance |
ShouldPredatorAttack(IPredator)
Declaration
bool ShouldPredatorAttack(IPredator predator)
Parameters
Type | Name | Description |
---|---|---|
IPredator | predator |
Returns
Type | Description |
---|---|
System.Boolean |