Dolgov D.A. Lab Work 4 #4

Closed
devil_1nc wants to merge 6 commits from LabWork04 into LabWork03
Showing only changes of commit 9a2fb3445b - Show all commits

View File

@ -11,14 +11,20 @@ namespace ProjectPlane
/// <summary>
/// Инициализация свойств
/// </summary>
public DrawingWarPlane(int speed, float weight, Color bodyColor, Color dopColor, bool isBomber, bool isFighter, bool superTurbine) :
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес самолета</param>
/// <param name="bodyColor">Цвет корпуса</param>
/// <param name="dopColor">Дополнительный цвет</param>
/// <param name="bodyKit">Признак наличия доп отсека</param>
/// <param name="wing">Признак наличия супертурбины</param>
public DrawingWarPlane(int speed, float weight, Color bodyColor, Color dopColor, bool extraCell, bool superTurbine) :
base(speed, weight, bodyColor, 110, 60)
{
Plane = new EntityWarPlane(speed, weight, bodyColor, dopColor, isFighter, superTurbine);
Plane = new EntityWarPlane(speed, weight, bodyColor, dopColor, extraCell, superTurbine);
}
public override void DrawTransport(Graphics g)
{
if (Plane is not EntityWarPlane warplane)
{