コード例 #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;
 }