예제 #1
0
        public Core(List <ControlRod> controlRods, IGameConstants constants)
        {
            this.controlRods = controlRods;
            this.constants   = constants;

            cells = new Cell[5, 5];

            for (int i = 0; i < 5; i++)
            {
                for (int j = 0; j < 5; j++)
                {
                    cells[i, j] = new Cell();
                }
            }
        }
예제 #2
0
 public Plant(List <ControlRod> controlRods, IGameConstants constants)
 {
     this.constants = constants;
     core           = new Core(controlRods, constants);
 }