Click or drag to resize
OrganismStateUpperBoundaryForEnergyState Method

Returns the amount of energy required to be at the top of a given EnergyState. It's recommended that the actual EnergyState property be used to determine the current energy bucket a creature is in.

Namespace: Terrarium.Sdk.Classes.State
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static double UpperBoundaryForEnergyState(
	ISpecies species,
	EnergyState energyState,
	int radius
)

Parameters

species
Type: Terrarium.Sdk.InterfacesISpecies
The species for which to calculate
energyState
Type: Terrarium.Sdk.EnumerationsEnergyState
EnergyState enum value for the bucket to get the upper energy bounding for.
radius
Type: SystemInt32
The radius of the organism to use in calculation

Return Value

Type: Double
System.Double representing the amount of energy to be at the top of a given energy state.
See Also