Exemplo n.º 1
0
        static private void CellCreator(Graphics liveCellInitial, int cellKey, int x, int y)
        {
            PopulateCell(liveCellInitial, cellKey, x, y);

            if (cellTable[cellKey] == 1)
            {
                BoardDesign.DrawSection(Color.Green, liveCellInitial, x, y);
            }
        }
Exemplo n.º 2
0
 static public void PopulateCell(Graphics liveZone, int cellKey, int x, int y)
 {
     cellTable[cellKey] = 1;
     BoardDesign.DrawSection(Color.Green, liveZone, x, y);
 }
Exemplo n.º 3
0
        static private void CellKiller(Graphics killZone, int cellKey, int x, int y)
        {
            cellTable[cellKey] = 0;

            BoardDesign.DrawSection(Color.Red, killZone, x, y);
        }