Organism Properties |
The Organism type exposes the following members.
Name | Description | |
---|---|---|
![]() | CanReproduce | Determines whether all conditions are met for your organism to be able to reproduce. These conditions include various state information like whether your creature is mature, has enough energy, and is not already reproducing. |
![]() | CurrentReproduceAction | After your creature has begun reproduction you can get the ReproduceAction object that represents your creature's current reproduction. You can use this to examine the dna byte array that will be passed to the child. |
![]() | ID | The unique GUID for an organism. This is used to store plant/animal state when being saved to disk, or when passing plant/animal information to children during reproduction. |
![]() | IsReproducing | Determines if your organism is currently in the process of reproducing. Because reproducing is an asynchronous action, the organism may not actually be giving birth yet. |
![]() | OrganismRandom | To make random actions deterministic the creature should use this Random object when in need of a random number or variable in the creature's code. This can help aid in debugging so that strange behavior can be reproduced. |
![]() | Position | Each creature is centered in the game world to a specific point. The Position property can be used to query for this location. |
![]() | SerializedStream | |
![]() | State | Gets the OrganismState object representing your creature's current state in the world. The OrganismState object contains all of the properties that specify your organism's existence with properties like: Position, EnergyState, PercentInjured, etc... |
![]() | Trace | |
![]() | TurnsSkipped | A creature can get skipped for a number of turns if it takes too long to execute. There is a limit to the time an animal can use for processing every turn which is calculated dynamically by the Terrarium each time it starts based on your computer's processing power. To see how long your creature takes to process, you can open the Trace window, unselect "Show Organism Traces", and then select your creature. Note that this time will be different depending on the machine. If you do break the limit Terrarium determines how many ticks worth of time you've gone over the limit and sets this property. You can examine this property to recover from conditions where your creature is skipped for a given number of turns. This is useful since you may not receive events that fire while during the time your creature's turn is being skipped. |