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)