From e80fba02ee55b80b3935e56a59bb3216a5b360e1 Mon Sep 17 00:00:00 2001 From: victinass Date: Mon, 19 Feb 2024 09:33:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Battleship/Battleship/DrawingBattleship.cs | 2 +- Battleship/Battleship/EntityBattleship.cs | 3 +++ Battleship/Battleship/FormBattleship.cs | 11 ++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Battleship/Battleship/DrawingBattleship.cs b/Battleship/Battleship/DrawingBattleship.cs index e962b11..cae552c 100644 --- a/Battleship/Battleship/DrawingBattleship.cs +++ b/Battleship/Battleship/DrawingBattleship.cs @@ -61,7 +61,7 @@ public class DrawingBattleship /// - /// + /// Установка границ поля /// /// Ширина поля /// Высота поля diff --git a/Battleship/Battleship/EntityBattleship.cs b/Battleship/Battleship/EntityBattleship.cs index 477cac0..0d01e5c 100644 --- a/Battleship/Battleship/EntityBattleship.cs +++ b/Battleship/Battleship/EntityBattleship.cs @@ -38,6 +38,9 @@ public class EntityBattleship /// public double Step => Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса линкора + /// /// /// /// diff --git a/Battleship/Battleship/FormBattleship.cs b/Battleship/Battleship/FormBattleship.cs index 048e106..6a8da1e 100644 --- a/Battleship/Battleship/FormBattleship.cs +++ b/Battleship/Battleship/FormBattleship.cs @@ -30,7 +30,11 @@ public partial class FormBattleship : Form pictureBoxBattleship.Image = bmp; } - + /// + /// обработка нажатия кнопки "создать линкор" + /// + /// + /// private void buttonCreate_Click(object sender, EventArgs e) { Random random = new(); @@ -46,6 +50,11 @@ public partial class FormBattleship : Form } + /// + /// обработка нажатия кнопок "вверх/вниз/влево/вправо" + /// + /// + /// private void buttonMove_Click(object sender, EventArgs e) { if (_drawingBattleship == null)