Click or drag to resize
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
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public interface ISpecies

The ISpecies type exposes the following members.

Methods
  NameDescription
Public methodIsSameSpecies

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.

Top
Properties
  NameDescription
Public propertyGrowthWait

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.

Public propertyLifeSpan

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.

Public propertyMatureRadius

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.

Public propertyMaximumEnergyPerUnitRadius

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.

Public propertyReproductionWait

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.

Public propertySkin

Returns the Skin the creature will use when being displayed in the Terrarium.

Top
See Also