C# Class CellsAutomate.Creatures.Creature

Inheritance: BaseCreature
Show file Open project: Confirmit/Students

Public Methods

Method Description
Creature ( Executor executor, ICommand commandsForGetDirection, ICommand commandsForGetAction ) : System

Protected Methods

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

Method Details

Creature() public method

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

GetAction() protected method

protected GetAction ( Random random, bool hasOneBite, int energyPoints ) : ActionEnum
random System.Random
hasOneBite bool
energyPoints int
return ActionEnum

GetDirection() protected method

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