C# Class CellsAutomate.Creatures.Creature

Inheritance: BaseCreature
Afficher le fichier Open project: Confirmit/Students

Méthodes publiques

Méthode Description
Creature ( Executor executor, ICommand commandsForGetDirection, ICommand commandsForGetAction ) : System

Méthodes protégées

Méthode Description
GetAction ( Random random, bool hasOneBite, int energyPoints ) : ActionEnum
GetDirection ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random ) : DirectionEnum

Method Details

Creature() public méthode

public Creature ( Executor executor, ICommand commandsForGetDirection, ICommand commandsForGetAction ) : System
executor Creatures.Language.Executors.Executor
commandsForGetDirection ICommand
commandsForGetAction ICommand
Résultat System

GetAction() protected méthode

protected GetAction ( Random random, bool hasOneBite, int energyPoints ) : ActionEnum
random System.Random
hasOneBite bool
energyPoints int
Résultat ActionEnum

GetDirection() protected méthode

protected GetDirection ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random ) : DirectionEnum
eatMatrix CellsAutomate.Food.FoodMatrix
creatures Membrane
position Point
random System.Random
Résultat DirectionEnum