удаление лишних файлов
This commit is contained in:
parent
f5721e2145
commit
d9cb14e5e4
@ -33,7 +33,7 @@ public class DrawningAirbus
|
||||
/// <summary>
|
||||
/// Ширина прорисовки
|
||||
/// </summary>
|
||||
private readonly int _drawningAirbusWidth = 215;
|
||||
private readonly int _drawningAirbusWidth = 210;
|
||||
|
||||
/// <summary>
|
||||
/// Высота прорисовки
|
||||
@ -88,8 +88,7 @@ additionalColor, bool motor, bool otsek)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы
|
||||
// то надо изменить координаты, чтобы он оставался в этих границах
|
||||
|
||||
_startPosX = x;
|
||||
_startPosY = y;
|
||||
}
|
||||
@ -165,7 +164,6 @@ additionalColor, bool motor, bool otsek)
|
||||
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 30, 150, 50);
|
||||
|
||||
//нос
|
||||
|
||||
|
||||
Point[] nos = {
|
||||
new Point(_startPosX.Value + 180, _startPosY.Value + 30),
|
||||
@ -187,7 +185,7 @@ additionalColor, bool motor, bool otsek)
|
||||
g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value + 125,
|
||||
_startPosX.Value + 75, _startPosY.Value + 55);
|
||||
|
||||
//крыло сзади
|
||||
//крыло сзади
|
||||
|
||||
Point[] krilo2 =
|
||||
{
|
||||
@ -197,7 +195,7 @@ additionalColor, bool motor, bool otsek)
|
||||
};
|
||||
g.FillPolygon(br, krilo2);
|
||||
g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 30,
|
||||
_startPosX.Value + 70, _startPosY.Value + 0);
|
||||
_startPosX.Value + 70, _startPosY.Value + 0);
|
||||
g.DrawLine(pen, _startPosX.Value + 70, _startPosY.Value + 0,
|
||||
_startPosX.Value + 75, _startPosY.Value + 30);
|
||||
|
||||
@ -239,7 +237,7 @@ additionalColor, bool motor, bool otsek)
|
||||
if (EntityAirbus.Otsek)
|
||||
{
|
||||
Point[] drOtsek =
|
||||
{
|
||||
{
|
||||
new Point(_startPosX.Value + 180, _startPosY.Value + 30),
|
||||
new Point(_startPosX.Value + 160, _startPosY.Value + 15),
|
||||
new Point(_startPosX.Value + 130, _startPosY.Value + 15),
|
||||
@ -256,8 +254,6 @@ additionalColor, bool motor, bool otsek)
|
||||
|
||||
//дополнительные двигатели (опция)
|
||||
|
||||
|
||||
|
||||
if (EntityAirbus.Motor)
|
||||
{
|
||||
Point[] motors =
|
||||
@ -265,8 +261,6 @@ additionalColor, bool motor, bool otsek)
|
||||
new Point(_startPosX.Value + 76, _startPosY.Value + 88),
|
||||
new Point(_startPosX.Value + 73 - 10, _startPosY.Value + 88 - 6),
|
||||
new Point(_startPosX.Value + 73 - 10, _startPosY.Value + 88 + 6),
|
||||
|
||||
|
||||
};
|
||||
g.FillPolygon(brAdd, motors);
|
||||
Point[] motors1 =
|
||||
@ -274,8 +268,6 @@ additionalColor, bool motor, bool otsek)
|
||||
new Point(_startPosX.Value + 73, _startPosY.Value + 110),
|
||||
new Point(_startPosX.Value + 70 - 10, _startPosY.Value + 110 - 6),
|
||||
new Point(_startPosX.Value + 70 - 10, _startPosY.Value + 110 + 6),
|
||||
|
||||
|
||||
};
|
||||
g.FillPolygon(brAdd, motors1);
|
||||
Point[] motors2 =
|
||||
@ -283,8 +275,6 @@ additionalColor, bool motor, bool otsek)
|
||||
new Point(_startPosX.Value + 79, _startPosY.Value + 22),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 22 - 6),
|
||||
new Point(_startPosX.Value + 76 - 10, _startPosY.Value + 22 + 6),
|
||||
|
||||
|
||||
};
|
||||
g.FillPolygon(brAdd, motors2);
|
||||
Point[] motors22 =
|
||||
@ -295,8 +285,5 @@ additionalColor, bool motor, bool otsek)
|
||||
};
|
||||
g.FillPolygon(brAdd, motors22);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -35,7 +35,7 @@
|
||||
/// <summary>
|
||||
/// шаг перемещения самолёта
|
||||
/// </summary>
|
||||
|
||||
///
|
||||
public double Step => Speed * 100 / Weight;
|
||||
|
||||
/// <summary>
|
||||
@ -51,14 +51,12 @@
|
||||
|
||||
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool motor, bool otsek)
|
||||
{
|
||||
Speed = speed;
|
||||
Speed = speed;
|
||||
Weight = weight;
|
||||
BodyColor = bodyColor;
|
||||
AdditionalColor = additionalColor;
|
||||
Motor = motor;
|
||||
Otsek = otsek;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 61 KiB |
Binary file not shown.
Before Width: | Height: | Size: 60 KiB |
Binary file not shown.
Before Width: | Height: | Size: 60 KiB |
Binary file not shown.
Before Width: | Height: | Size: 61 KiB |
Loading…
Reference in New Issue
Block a user