Exemplo n.º 1
0
 public Matrix(int length, int height, Creator creator, IFoodDistributionStrategy strategy)
 {
     Length = length;
     Height = height;
     _creator = creator;
     EatMatrix = new FoodMatrix(length, height, strategy);
     Creatures = new Membrane[length, height];
 }
Exemplo n.º 2
0
 public Membrane(BaseCreature creature, Random random, Point position, int generation, int parentMark, Creator creator)
 {
     Creature = creature;
     _random = random;
     _parentMark = parentMark;
     Position = position;
     Generation = generation;
     _creator = creator;
 }
Exemplo n.º 3
0
 public Membrane(BaseCreature creature, Random random, Point position, int generation, int parentMark, Creator creator)
 {
     Creature    = creature;
     _random     = random;
     _parentMark = parentMark;
     Position    = position;
     Generation  = generation;
     _creator    = creator;
 }