C# Класс CellsAutomate.Creatures.BaseCreature

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MyTurn ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random, bool hasOneBite, int energyPoints ) : DirectionEnum>.Tuple

Защищенные методы

Метод Описание
GetAction ( Random random, bool hasOneBite, int energyPoints ) : ActionEnum
GetDirection ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random ) : DirectionEnum

Описание методов

GetAction() защищенный абстрактный Метод

protected abstract GetAction ( Random random, bool hasOneBite, int energyPoints ) : ActionEnum
random System.Random
hasOneBite bool
energyPoints int
Результат ActionEnum

GetDirection() защищенный абстрактный Метод

protected abstract GetDirection ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random ) : DirectionEnum
eatMatrix CellsAutomate.Food.FoodMatrix
creatures Membrane
position Point
random System.Random
Результат DirectionEnum

MyTurn() публичный Метод

public MyTurn ( FoodMatrix eatMatrix, Membrane creatures, Point position, Random random, bool hasOneBite, int energyPoints ) : DirectionEnum>.Tuple
eatMatrix CellsAutomate.Food.FoodMatrix
creatures Membrane
position Point
random System.Random
hasOneBite bool
energyPoints int
Результат DirectionEnum>.Tuple