Exemplo n.º 1
0
Arquivo: Prey.cs Projeto: mihzas/Ocean
 public Prey(Ocean ocean, int timeToReproduce = 6)
     : base(ocean)
 {
     TIME_TO_REPRODUCE = timeToReproduce;
     _timeToReproduce = timeToReproduce;
     _rand = new MyRandom();
 }
Exemplo n.º 2
0
 public Ocean()
 {
     _rand = new MyRandom();
     _numRows = NUM_ROWS;
     _numCols = NUM_COLS;
     _numObstacles = NUM_OBSTACLES;
     _numPredators = NUM_PREDATORS;
     _numPreys = NUM_PREY;
     _iter = ITER;
     InitCells(this);
 }