private void OnChangeCell(object sender, ActionCellEventArgs cell) { int row = cell.Row; int col = cell.Col; Ball changedBallState = cell.ActionBall; Cells[row][col].Ball = changedBallState; }
private void OnCellMakePath(object sender, ActionCellEventArgs cells) { _cellsInPath = cells.ActionCells; foreach (Cell cell in _cellsInPath) { Cells[cell.Row][cell.Col].IsCellExistInPath = true; } }
private void OnCellExistInLine(object sender, ActionCellEventArgs cells) { _cellsInLine = cells.ActionCells; foreach (Cell cell in _cellsInLine) { Cells[cell.Row][cell.Col].IsCellExistInCollectedLine = true; } }
public void OnCellUnselected(object sender, ActionCellEventArgs selectedCell) { Cells[selectedCell.Row][selectedCell.Col].IsBallSelected = false; }