Добавила комментарии
This commit is contained in:
parent
e89bd91679
commit
e80fba02ee
@ -61,7 +61,7 @@ public class DrawingBattleship
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Установка границ поля
|
||||
/// </summary>
|
||||
/// <param name="width">Ширина поля</param>
|
||||
/// <param name="height">Высота поля</param>
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user