C# 클래스 CellsAutomate.Membrane

파일 보기 프로젝트 열기: Confirmit/Students 1 사용 예제들

공개 메소드들

메소드 설명
Eat ( FoodMatrix eatMatrix ) : void
MakeChild ( Point childPosition ) : Membrane
Membrane ( BaseCreature creature, Random random, Point position, int generation, int parentMark, Creator creator ) : System
Move ( Membrane creatures, Point newPosition ) : void
Turn ( FoodMatrix eatMatrix, Membrane creatures ) : DirectionEnum>.Tuple

비공개 메소드들

메소드 설명
GetDirectionForChild ( Membrane creatures ) : DirectionEnum
HasOneBite ( FoodMatrix eatMatrix ) : bool
HasToDie ( ) : bool

메소드 상세

Eat() 공개 메소드

public Eat ( FoodMatrix eatMatrix ) : void
eatMatrix CellsAutomate.Food.FoodMatrix
리턴 void

MakeChild() 공개 메소드

public MakeChild ( Point childPosition ) : Membrane
childPosition Point
리턴 Membrane

Membrane() 공개 메소드

public Membrane ( BaseCreature creature, Random random, Point position, int generation, int parentMark, Creator creator ) : System
creature CellsAutomate.Creatures.BaseCreature
random System.Random
position Point
generation int
parentMark int
creator Creator
리턴 System

Move() 공개 메소드

public Move ( Membrane creatures, Point newPosition ) : void
creatures Membrane
newPosition Point
리턴 void

Turn() 공개 메소드

public Turn ( FoodMatrix eatMatrix, Membrane creatures ) : DirectionEnum>.Tuple
eatMatrix CellsAutomate.Food.FoodMatrix
creatures Membrane
리턴 DirectionEnum>.Tuple