C# Class Terrarium.Game.AnimalSpecies

Inheritance: Species, IAnimalSpecies
Datei anzeigen Open project: eugeniomiro/Terrarium

Public Methods

Method Description
AnimalSpecies ( Type clrType ) : System

Creates a new Animal species from a CLR Type object. Initializes the new species properties based on various attributes on the Type.

GetAttributeWarnings ( ) : string

Generates warnings for attributes that have wasted points.

InitializeNewState ( Point position, int generation ) : OrganismBase.OrganismState

Initializes a new state given a position and a generation. This is used when creatures give birth, and the state has to effectively be cloned.

Method Details

AnimalSpecies() public method

Creates a new Animal species from a CLR Type object. Initializes the new species properties based on various attributes on the Type.
public AnimalSpecies ( Type clrType ) : System
clrType System.Type The type for the organism class.
return System

GetAttributeWarnings() public method

Generates warnings for attributes that have wasted points.
public GetAttributeWarnings ( ) : string
return string

InitializeNewState() public method

Initializes a new state given a position and a generation. This is used when creatures give birth, and the state has to effectively be cloned.
public InitializeNewState ( Point position, int generation ) : OrganismBase.OrganismState
position Point The new position of the creature in the world.
generation int The family generation for this creature.
return OrganismBase.OrganismState