Class RunningInterruptingBrain
Makes animal run between two points, but always interrupt halfway and start running towards another point.
Inheritance
System.Object
RunningInterruptingBrain
Assembly: Eco.Simulation.dll
Syntax
public class RunningInterruptingBrain : Brain
Constructors
RunningInterruptingBrain()
Declaration
public RunningInterruptingBrain()
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 interrupt, bool flee)
Parameters
Returns
Type |
Description |
System.Boolean |
False if setup failed and path wasn't found.
|