C# Class MZ.GeneticSimulation.DataModel.Creature

The creature.
Show file Open project: zzz77/GeneticSimulation Class Usage Examples

Public Properties

Property Type Description
IdOfSpecies int

Private Properties

Property Type Description
GetSelfishGenesOutStrength double

Public Methods

Method Description
BreakRedundantConnections ( ) : void

Breaks connection with unused grandparents.

Creature ( Creature mommy, Creature daddy ) : System

Initializes a new instance of the Creature class.

Creature ( int idOfSpecies, World world ) : System

Initializes a new instance of the Creature class.

Mutate ( ) : void

Mutates creature.

Private Methods

Method Description
GetSelfishGenesOutStrength ( Relation whoAreYou ) : double

Gets strength which is given to relation by this creature.

Method Details

BreakRedundantConnections() public method

Breaks connection with unused grandparents.
public BreakRedundantConnections ( ) : void
return void

Creature() public method

Initializes a new instance of the Creature class.
public Creature ( Creature mommy, Creature daddy ) : System
mommy Creature /// The mommy. ///
daddy Creature /// The daddy. ///
return System

Creature() public method

Initializes a new instance of the Creature class.
public Creature ( int idOfSpecies, World world ) : System
idOfSpecies int /// The id of species. ///
world World /// The world. ///
return System

Mutate() public method

Mutates creature.
public Mutate ( ) : void
return void

Property Details

IdOfSpecies public property

The id of species.
public int IdOfSpecies
return int