ISpecies Interface |
This interface holds all species related information that is common to both plants and animals. Creature developers can access all of this information by using the Species property of an OrganismState object.
All species information is immutable. A creature's species represents its basic capabilities such as the mature size, time between growth spurts, and the life span.
Namespace: Terrarium.Sdk.Interfaces
The ISpecies type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsSameSpecies | Used to determine if a creature with the given Species information is the same as another creature given their Species information. This is useful for assessing and remembering the strengths/weaknesses of other creatures. |
Name | Description | |
---|---|---|
![]() | GrowthWait | The amount of time in ticks a creature must wait before growing another unit of radius in size. The initial GrowthWait is defined in such a way that a creature will reach full size or MatureRadius after one half of the LifeSpan. Each tick GrowthWait will drop by one. Once the GrowthWait reaches 0 the creature will grow if it meets all growth requirements. Growth will happen automatically as long as the requirements for growth have been met. |
![]() | LifeSpan | The amount of time in ticks a creature is capable of living. Once the creature reaches the full lifespan of the species it is killed with the reason PopulationChangeReason.OldAge. |
![]() | MatureRadius | The maximum radius that a creature can achieve once they are fully matured. Once a creature has fully matured they may perform additional actions such as reproduction, while others actions cease such as growth. |
![]() | MaximumEnergyPerUnitRadius | The maximum amount of energy a creature can store for every unit of Radius it has grown. This allows larger creatures to store more energy than smaller creatures. |
![]() | ReproductionWait | The amount of time in ticks a creature must wait between reproductions. Creatures can normally reproduce more than once in a lifetime, so the time limit between reproduction and the life span of the creature are used to define the maximum number of reproductions. Each tick ReproductionWait will drop by one. Once the ReproductionWait reaches 0 one of the requirements the CanReproduce property will be met. Once a creature is capable of reproducing a call to BeginReproduction must be made to start incubation. |
![]() | Skin | Returns the Skin the creature will use when being displayed in the Terrarium. |