From 9a2fb3445b8343d5c1e57b72840a47e0802ccba5 Mon Sep 17 00:00:00 2001 From: devil_1nc Date: Mon, 21 Nov 2022 20:18:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'ProjectPlane/ProjectPlane/DrawingWarP?= =?UTF-8?q?lane.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectPlane/ProjectPlane/DrawingWarPlane.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ProjectPlane/ProjectPlane/DrawingWarPlane.cs b/ProjectPlane/ProjectPlane/DrawingWarPlane.cs index 2a93a15..becfa64 100644 --- a/ProjectPlane/ProjectPlane/DrawingWarPlane.cs +++ b/ProjectPlane/ProjectPlane/DrawingWarPlane.cs @@ -11,14 +11,20 @@ namespace ProjectPlane /// /// Инициализация свойств /// - public DrawingWarPlane(int speed, float weight, Color bodyColor, Color dopColor, bool isBomber, bool isFighter, bool superTurbine) : + /// Скорость + /// Вес самолета + /// Цвет корпуса + /// Дополнительный цвет + /// Признак наличия доп отсека + /// Признак наличия супертурбины + 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) {