C# Class Terrarium.Game.KilledOrganism

Mostrar archivo Open project: eugeniomiro/Terrarium Class Usage Examples

Public Methods

Method Description
KilledOrganism ( OrganismBase.OrganismState state ) : System

Creates a new KilledOrganism based on information in an OrganismState.

KilledOrganism ( string id, PopulationChangeReason reason ) : System

Creates a new KilledOrganism based on ID and reason for death.

KilledOrganism ( string id, PopulationChangeReason reason, string extraInformation ) : System

Creates a new KilledOrganism based on the ID, the reason for death, and any extra information that can be used when the organism is removed.

Method Details

KilledOrganism() public method

Creates a new KilledOrganism based on information in an OrganismState.
public KilledOrganism ( OrganismBase.OrganismState state ) : System
state OrganismBase.OrganismState The state object that ID and death reason will be pulled from.
return System

KilledOrganism() public method

Creates a new KilledOrganism based on ID and reason for death.
public KilledOrganism ( string id, PopulationChangeReason reason ) : System
id string The Unique ID of the organism.
reason PopulationChangeReason The reason the organism was killed.
return System

KilledOrganism() public method

Creates a new KilledOrganism based on the ID, the reason for death, and any extra information that can be used when the organism is removed.
public KilledOrganism ( string id, PopulationChangeReason reason, string extraInformation ) : System
id string The Unique ID of the organism.
reason PopulationChangeReason The reason the organism was killed.
extraInformation string Extra information about the death.
return System