Click or drag to resize
OrganismStateIsWithinRect Method
Used to compute whether or not a given state object is in an adjacent or overlapping grid cell. The extra radius can be used to extend the area used for the function to find a match and so can be used for functions like visibiliy.

Namespace: Terrarium.Sdk.Classes.State
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public bool IsWithinRect(
	int state1ExtraRadius,
	OrganismState state2
)

Parameters

state1ExtraRadius
Type: SystemInt32
The amount of extra grid cells to add
state2
Type: Terrarium.Sdk.Classes.StateOrganismState
The organism state of the creature to use in the area test.

Return Value

Type: Boolean
True if the creature is within range, false otherwise.
See Also