Class RunningBrain
Simple brain for debugging that makes animal run back and forth between two points.
Inheritance
System.Object
RunningBrain
Assembly: Eco.Simulation.dll
Syntax
public class RunningBrain : Brain
Constructors
RunningBrain()
Declaration
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, Boolean)
Sets animal brain and memory to make it run between two points.
Declaration
public static bool SetupAnimal(Animal animal, Vector3i from, Vector3i to, bool flee)
Parameters
Returns
Type |
Description |
System.Boolean |
False if setup failed and path wasn't found.
|