Форматирование. Завершение Lab3

This commit is contained in:
malimova 2023-10-22 13:37:26 +04:00
parent ed09a0e092
commit 3ad2071256
4 changed files with 4 additions and 6 deletions

View File

@ -37,6 +37,7 @@ namespace AirBomber
public void SetData(IMoveableObject moveableObject, int width, int public void SetData(IMoveableObject moveableObject, int width, int
height) height)
{ {
if (moveableObject == null) if (moveableObject == null)
{ {
_state = Status.NotInit; _state = Status.NotInit;
@ -86,8 +87,7 @@ namespace AirBomber
/// <summary> /// <summary>
/// Параметры объекта /// Параметры объекта
/// </summary> /// </summary>
protected ObjectParameters? GetObjectParameters => protected ObjectParameters? GetObjectParameters =>_moveableObject?.GetObjectPosition;
_moveableObject?.GetObjectPosition;
/// <summary> /// <summary>
/// Шаг объекта /// Шаг объекта
/// </summary> /// </summary>

View File

@ -45,7 +45,7 @@ namespace AirBomber
/// <param name="bodyColor">Основной цвет</param> /// <param name="bodyColor">Основной цвет</param>
/// <param name="width">Ширина картинки</param> /// <param name="width">Ширина картинки</param>
/// <param name="height">Высота картинки</param> /// <param name="height">Высота картинки</param>
/*public DrawningAirPlane(int speed, double weight, Color bodyColor, int public DrawningAirPlane(int speed, double weight, Color bodyColor, int
width, int height) width, int height)
{ {
// TODO: Продумать проверки // TODO: Продумать проверки
@ -56,7 +56,7 @@ namespace AirBomber
_pictureWidth = width; _pictureWidth = width;
_pictureHeight = height; _pictureHeight = height;
EntityAirPlane = new EntityAirPlane(speed, weight, bodyColor); EntityAirPlane = new EntityAirPlane(speed, weight, bodyColor);
}*/ }
/// <summary> /// <summary>
/// Конструктор /// Конструктор
/// </summary> /// </summary>

View File

@ -59,7 +59,6 @@ namespace AirBomber
{ {
Random random = new(); Random random = new();
Color color = Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)); Color color = Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256));
ColorDialog dialog = new(); ColorDialog dialog = new();
if (dialog.ShowDialog() == DialogResult.OK) if (dialog.ShowDialog() == DialogResult.OK)
{ {

View File

@ -57,7 +57,6 @@ namespace AirBomber
} }
return collect?._collection.Insert(obj) ?? -1; return collect?._collection.Insert(obj) ?? -1;
} }
/// <summary> /// <summary>
/// Перегрузка оператора вычитания /// Перегрузка оператора вычитания
/// </summary> /// </summary>