PIbd-11_Gulina_V.S._LabWork01_Simple #1

Closed
victinass wants to merge 5 commits from LabWork01 into main
3 changed files with 14 additions and 2 deletions
Showing only changes of commit e80fba02ee - Show all commits

View File

@ -61,7 +61,7 @@ public class DrawingBattleship
/// <summary>
///
/// Установка границ поля
/// </summary>
/// <param name="width">Ширина поля</param>
/// <param name="height">Высота поля</param>

View File

@ -38,6 +38,9 @@ public class EntityBattleship
/// </summary>
public double Step => Speed * 100 / Weight;
/// <summary>
/// Инициализация полей объекта-класса линкора
/// </summary>
/// <param name="speed"></param>
/// <param name="weight"></param>
/// <param name="bodyColor"></param>

View File

@ -30,7 +30,11 @@ public partial class FormBattleship : Form
pictureBoxBattleship.Image = bmp;
}
/// <summary>
/// обработка нажатия кнопки "создать линкор"
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonCreate_Click(object sender, EventArgs e)
{
Random random = new();
@ -46,6 +50,11 @@ public partial class FormBattleship : Form
}
/// <summary>
/// обработка нажатия кнопок "вверх/вниз/влево/вправо"
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonMove_Click(object sender, EventArgs e)
{
if (_drawingBattleship == null)