C# Class Terrarium.Game.PlantSpecies

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

Public Methods

Method Description
GetAttributeWarnings ( ) : string

Retrieves attribute warnings. The Plant class implements no warnings and so delegates to the base class for warnings.

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

Initializes a new state object with the given position and family generation

PlantSpecies ( Type clrType ) : System

Creates a new species object from a CLR Type by pulling information off of the type's attributes.

Method Details

GetAttributeWarnings() public method

Retrieves attribute warnings. The Plant class implements no warnings and so delegates to the base class for warnings.
public GetAttributeWarnings ( ) : string
return string

InitializeNewState() public method

Initializes a new state object with the given position and family generation
public InitializeNewState ( Point position, int generation ) : OrganismBase.OrganismState
position Point The position of the new PlantState
generation int The family generation of the new Plant
return OrganismBase.OrganismState

PlantSpecies() public method

Creates a new species object from a CLR Type by pulling information off of the type's attributes.
public PlantSpecies ( Type clrType ) : System
clrType System.Type The Type representing the Plant class.
return System