Пример #1
0
        private void OnChangeCell(object sender, ActionCellEventArgs cell)
        {
            int  row = cell.Row;
            int  col = cell.Col;
            Ball changedBallState = cell.ActionBall;

            Cells[row][col].Ball = changedBallState;
        }
Пример #2
0
        private void OnCellMakePath(object sender, ActionCellEventArgs cells)
        {
            _cellsInPath = cells.ActionCells;

            foreach (Cell cell in _cellsInPath)
            {
                Cells[cell.Row][cell.Col].IsCellExistInPath = true;
            }
        }
Пример #3
0
        private void OnCellExistInLine(object sender, ActionCellEventArgs cells)
        {
            _cellsInLine = cells.ActionCells;

            foreach (Cell cell in _cellsInLine)
            {
                Cells[cell.Row][cell.Col].IsCellExistInCollectedLine = true;
            }
        }
Пример #4
0
 public void OnCellUnselected(object sender, ActionCellEventArgs selectedCell)
 {
     Cells[selectedCell.Row][selectedCell.Col].IsBallSelected = false;
 }