Click or drag to resize
Organism Methods

The Organism type exposes the following members.

Methods
  NameDescription
Public methodBeginReproduction

Use this function to command your creature to reproduce. There are many conditions on whether your creature can reproduce. If these conditions are not met, an exception will be thrown. The easiest way to make sure all pre-existing conditions have been met is to check the CanReproduce property.

If you call this method multiple times in the same turn, then the last call will be used, and all previous calls will be ignored. This method is also asynchronous, and a ReproduceCompletedEvent will be fired when your creature has actually given birth. The time between start and completion is 10 ticks.

Public methodDistanceTo

Calculates the linear distance between your creature and another using various API's defined by the Vector class.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetThenErasePendingActions
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialize
The Initialize method is called immediately after instantiating a new creature. The developer should override this method to set up event handlers for the creature and do any first time initialization that needs to be done to set up member variables.
Public methodInternalMain
Public methodInternalOrganismDeserialize
Public methodInternalOrganismSerialize
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetWorldBoundary
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteTrace(Object)

Writes a trace to the Terrarium trace window for debugging. The Tracing routines take a *very* small amount of time if you're not monitoring them. They are on the order of 12 nSec per call. To meet this performance requirement there are several overloads taking a varying number of parameters rather than a single variable argument parameter.

Public methodWriteTrace(Object, Object)

Writes a trace to the Terrarium trace window for debugging. The Tracing routines take a *very* small amount of time if you're not monitoring them. They are on the order of 12 nSec per call. To meet this performance requirement there are several overloads taking a varying number of parameters rather than a single variable argument parameter.

Public methodWriteTrace(Object, Object, Object)

Writes a trace to the Terrarium trace window for debugging. The Tracing routines take a *very* small amount of time if you're not monitoring them. They are on the order of 12 nSec per call. To meet this performance requirement there are several overloads taking a varying number of parameters rather than a single variable argument parameter.

Public methodWriteTrace(Object, Object, Object, Object)

Writes a trace to the Terrarium trace window for debugging. The Tracing routines take a *very* small amount of time if you're not monitoring them. They are on the order of 12 nSec per call. To meet this performance requirement there are several overloads taking a varying number of parameters rather than a single variable argument parameter.

Top
See Also