C# Класс Terrarium.Game.AnimalSpecies

Наследование: Species, IAnimalSpecies
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AnimalSpecies() публичный Метод

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.
Результат System

GetAttributeWarnings() публичный Метод

Generates warnings for attributes that have wasted points.
public GetAttributeWarnings ( ) : string
Результат string

InitializeNewState() публичный Метод

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.
Результат OrganismBase.OrganismState