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

Наследование: ISpecies
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
GetAttributeWarnings ( ) : string

Gets attribute warnings for specific attributes when points are being wasted or points are out of bounds.

GetSpeciesFromAssembly ( Assembly organismAssembly ) : Species

Called to create a new species object from the given assembly. This should be the only entry point for creating a new species object.

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

Required method for any derived classes that can be used to create a new state object based on the species.

IsSameSpecies ( ISpecies species ) : bool

This method can be used to compare another species to this species and determine if they match.

Защищенные методы

Метод Описание
Species ( Type clrType ) : System

Creates a new instance of the species class initialized with the given CLR Type pulling various fields out of the Type's attributes.

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

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

Gets attribute warnings for specific attributes when points are being wasted or points are out of bounds.
public GetAttributeWarnings ( ) : string
Результат string

GetSpeciesFromAssembly() публичный статический Метод

Called to create a new species object from the given assembly. This should be the only entry point for creating a new species object.
public static GetSpeciesFromAssembly ( Assembly organismAssembly ) : Species
organismAssembly System.Reflection.Assembly The assembly to generate the species from.
Результат Species

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

Required method for any derived classes that can be used to create a new state object based on the species.
public abstract InitializeNewState ( Point position, int generation ) : OrganismBase.OrganismState
position Point The position for the new state.
generation int The creature's generation for the new state.
Результат OrganismBase.OrganismState

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

This method can be used to compare another species to this species and determine if they match.
public IsSameSpecies ( ISpecies species ) : bool
species ISpecies The species to be compared
Результат bool

Species() защищенный Метод

Creates a new instance of the species class initialized with the given CLR Type pulling various fields out of the Type's attributes.
protected Species ( Type clrType ) : System
clrType System.Type The CLR Type to initialize this species.
Результат System