From e80fba02ee55b80b3935e56a59bb3216a5b360e1 Mon Sep 17 00:00:00 2001 From: victinass Date: Mon, 19 Feb 2024 09:33:36 +0400 Subject: [PATCH 1/2] =?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) From ac16f4423be8597d8114eef65d725a56f5ff95e5 Mon Sep 17 00:00:00 2001 From: victinass Date: Mon, 19 Feb 2024 12:16:41 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Battleship/Battleship/DrawingBattleship.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Battleship/Battleship/DrawingBattleship.cs b/Battleship/Battleship/DrawingBattleship.cs index cae552c..eee4543 100644 --- a/Battleship/Battleship/DrawingBattleship.cs +++ b/Battleship/Battleship/DrawingBattleship.cs @@ -40,7 +40,7 @@ public class DrawingBattleship private readonly int _drawingBattleshipHeight = 40; /// - /// + /// Инициализация свойств /// /// Скорость /// Вес @@ -265,4 +265,4 @@ public class DrawingBattleship g.DrawRectangle(pen, _startPosX.Value + 107, _startPosY.Value + 17, 30, 5); } } -} +} \ No newline at end of file