Beispiel #1
0
        private void playerFieldArea_MouseMove(object sender, MouseEventArgs e)
        {
            if (selectedShip_dockNumber == 0)
            {
                return;
            }
            Cell targetCell = GetTargetCell(playerFieldArea, e.X, e.Y);

            if (targetCell == null)
            {
                return;
            }
            playerField.HighlightPlacement(selectedShip_dockNumber, targetCell, placeVertically);
            DrawPlayerField();
        }