C# 클래스 Terrarium.Game.Species

상속: ISpecies
파일 보기 프로젝트 열기: eugeniomiro/Terrarium 1 사용 예제들

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