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 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.º 3
0
 public FoodMatrix(int length, int height, IFoodDistributionStrategy strategy)
 {
     _matrix   = new int[length, height];
     _strategy = strategy;
 }
Exemplo n.º 4
0
 public FoodMatrix(int length, int height, IFoodDistributionStrategy strategy)
 {
     _matrix = new int[length, height];
     _strategy = strategy;
 }