Class RunningContinuingBrain
Makes animal run back and forth between two points with third point towards which animal starts
running initially, but then it receives path from third to last point before third point is reached.
Inheritance
System.Object
RunningContinuingBrain
Assembly: Eco.Simulation.dll
Syntax
public class RunningContinuingBrain : Brain
Constructors
RunningContinuingBrain()
Declaration
public RunningContinuingBrain()
Properties
ClearMemoryWhenNotVisible
Declaration
public override bool ClearMemoryWhenNotVisible { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
RootBehavior(Animal)
Declaration
public override Behavior<Animal> RootBehavior(Animal animal)
Parameters
Type |
Name |
Description |
Animal |
animal |
|
Returns
Overrides
SetupAnimal(Animal, Vector3i, Vector3i, Vector3i, Boolean)
Sets animal brain and memory to make it run between 'from' and 'to', but never reach 'to' and always get interrupted with
a new path leading to 'interrupt' or 'from', so it runs back and forth testing path interruption handling.
Declaration
public static bool SetupAnimal(Animal animal, Vector3i from, Vector3i to, Vector3i middle, bool flee)
Parameters
Returns
Type |
Description |
System.Boolean |
False if setup failed and path wasn't found.
|