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) {