C# 클래스 Terrarium.Game.AnimalSpecies

상속: Species, IAnimalSpecies
파일 보기 프로젝트 열기: eugeniomiro/Terrarium

공개 메소드들

메소드 설명
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