Agliullov D.A. Lab Work 2 Base #2

Closed
d.agliullov wants to merge 17 commits from Lab2 into Lab1
2 changed files with 3 additions and 4 deletions
Showing only changes of commit f5cb1bfbe2 - Show all commits

View File

@ -39,10 +39,9 @@
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес самолета</param>
/// <param name="bodyColor">Цвет обшивки</param>
public void Init(int speed, float weight, Color bodyColor)
public DrawningAirplane(int speed, float weight, Color bodyColor)
{
Airplane = new EntityAirplane();
Airplane.Init(speed, weight, bodyColor);
Airplane = new EntityAirplane(speed, weight, bodyColor);
}
/// <summary>
/// Установка позиции самолета

View File

@ -28,7 +28,7 @@
/// <param name="weight"></param>
/// <param name="bodyColor"></param>
/// <returns></returns>
public void Init(int speed, float weight, Color bodyColor)
public EntityAirplane(int speed, float weight, Color bodyColor)
{
Random rnd = new();
Speed = speed <= 0 ? rnd.Next(50, 150) : speed;