示例#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];
 }
示例#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;
 }
示例#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;
 }