refactoring

This commit is contained in:
MaxKarme 2022-10-05 08:32:29 +03:00
parent e9d0046f62
commit 908ca82192

View File

@ -11,8 +11,7 @@ namespace AirFighter
public DrawingModernAirFighter(int speed, float weight, Color bodyColor, Color dopColor, bool dopWings, bool rockets) : public DrawingModernAirFighter(int speed, float weight, Color bodyColor, Color dopColor, bool dopWings, bool rockets) :
base(speed, weight, bodyColor, 195, 166) base(speed, weight, bodyColor, 195, 166)
{ {
AirFighter = new EntityModernAirFighter(speed, weight, bodyColor, dopColor, dopWings, AirFighter = new EntityModernAirFighter(speed, weight, bodyColor, dopColor, dopWings, rockets);
rockets);
} }
public override void DrawTransport(Graphics g) public override void DrawTransport(Graphics g)
{ {
@ -28,22 +27,7 @@ namespace AirFighter
if (modernAirFighter.DopWings) 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 = PointF[] topDopWing =
{ {
@ -110,11 +94,7 @@ namespace AirFighter
} }
/* _startPosX += 10;
_startPosY += 5;*/
base.DrawTransport(g); base.DrawTransport(g);
/* _startPosX -= 10;
_startPosY -= 5;*/
} }
} }