コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Adri22/GameOfLife
        private int delay; // TODO: make it variable at runtime

        private void InitSimulationObjects(BigBang.InitializationMode initMode)
        {
            bb      = new BigBang(initMode);
            world   = bb.GetNewWorld();
            cellGen = world.GetCells();
            delay   = 80;
        }
コード例 #2
0
 public void AddCells(Cell[,] cells)
 {
     cellGen = new CellGeneration(cells);
 }