From 908ca82192002c6441febc0ffa7776d4fce20052 Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Wed, 5 Oct 2022 08:32:29 +0300 Subject: [PATCH] refactoring --- .../AirFighter/DrawingModernAirFighter.cs | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/AirFighter/AirFighter/DrawingModernAirFighter.cs b/AirFighter/AirFighter/DrawingModernAirFighter.cs index 6dd6c85..c05a07e 100644 --- a/AirFighter/AirFighter/DrawingModernAirFighter.cs +++ b/AirFighter/AirFighter/DrawingModernAirFighter.cs @@ -11,8 +11,7 @@ namespace AirFighter public DrawingModernAirFighter(int speed, float weight, Color bodyColor, Color dopColor, bool dopWings, bool rockets) : base(speed, weight, bodyColor, 195, 166) { - AirFighter = new EntityModernAirFighter(speed, weight, bodyColor, dopColor, dopWings, - rockets); + AirFighter = new EntityModernAirFighter(speed, weight, bodyColor, dopColor, dopWings, rockets); } public override void DrawTransport(Graphics g) { @@ -28,22 +27,7 @@ namespace AirFighter if (modernAirFighter.DopWings) { - /*PointF[] topDopWing = - { - new(_startPosX + 75, _startPosY + 14), - new(_startPosX + 86, _startPosY + 14), - new(_startPosX + 75, _startPosY + 70), - new(_startPosX + 70, _startPosY + 70), - };*/ - -/* PointF[] topDopWing = - { - new(_startPosX + 78, _startPosY + 56), - new(_startPosX + 75, _startPosY + 70), - new(_startPosX + 55, _startPosY + 70), - new(_startPosX + 55, _startPosY + 45), - //new(_startPosX + 60, _startPosY + 55), - };*/ + PointF[] topDopWing = { @@ -110,11 +94,7 @@ namespace AirFighter } -/* _startPosX += 10; - _startPosY += 5;*/ base.DrawTransport(g); -/* _startPosX -= 10; - _startPosY -= 5;*/ } }