private void Form1_MouseDown(object sender, MouseEventArgs e)
{
switch (e.Button)
{
case MouseButtons.Left:
platEnemy.TouchedCase(e.X, e.Y);
if (!this.GameStarting)
{
foreach (Ship ship in ships)
{
if (ship.isBetweenCase(e.X, e.Y))
{
ship.Draggering = true;
}
}
}
break;
case MouseButtons.Right:
foreach (Ship ship in ships)
{
if (ship.isBetweenCase(e.X, e.Y))
ship.rotateBoat();
}
break;
}
}