доработка границ
This commit is contained in:
parent
3c230081c5
commit
3d5082eb78
@ -38,20 +38,20 @@ public class DrawingAirBomber : DrawningPlane
|
|||||||
if (airBomber.Engine)
|
if (airBomber.Engine)
|
||||||
{
|
{
|
||||||
Brush brBrown = new SolidBrush(Color.Brown);
|
Brush brBrown = new SolidBrush(Color.Brown);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5);
|
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5);
|
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5);
|
||||||
g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5);
|
g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5);
|
||||||
g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5);
|
g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
//наличие дополнительных бомб
|
//наличие дополнительных бомб
|
||||||
if (airBomber.Bomb)
|
if (airBomber.Bomb)
|
||||||
{
|
{
|
||||||
Brush brGreen = new SolidBrush(Color.Green);
|
Brush brGreen = new SolidBrush(Color.Green);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8);
|
g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8);
|
g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8);
|
||||||
g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8);
|
g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8);
|
||||||
g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8);
|
g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -179,50 +179,50 @@ public class DrawningPlane
|
|||||||
|
|
||||||
//главная часть
|
//главная часть
|
||||||
Brush br = new SolidBrush(EntityPlane.BodyColor);
|
Brush br = new SolidBrush(EntityPlane.BodyColor);
|
||||||
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 100, 30);
|
g.DrawRectangle(pen, _startPosX.Value+25, _startPosY.Value + 65, 100, 30);
|
||||||
g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 40, 100, 30);
|
g.FillRectangle(br, _startPosX.Value+25, _startPosY.Value + 65, 100, 30);
|
||||||
|
|
||||||
//носовая часть
|
//носовая часть
|
||||||
Brush brBlack = new SolidBrush(Color.Black);
|
Brush brBlack = new SolidBrush(Color.Black);
|
||||||
Point point1 = new Point(_startPosX.Value -25, _startPosY.Value + 55);
|
Point point1 = new Point(_startPosX.Value, _startPosY.Value + 80);
|
||||||
Point point2 = new Point(_startPosX.Value, _startPosY.Value + 70);
|
Point point2 = new Point(_startPosX.Value + 25, _startPosY.Value + 95);
|
||||||
Point point3 = new Point(_startPosX.Value, _startPosY.Value + 40);
|
Point point3 = new Point(_startPosX.Value + 25, _startPosY.Value + 65);
|
||||||
Point[] curvePointsNos = { point1, point2, point3 };
|
Point[] curvePointsNos = { point1, point2, point3 };
|
||||||
g.DrawPolygon(pen, curvePointsNos);
|
g.DrawPolygon(pen, curvePointsNos);
|
||||||
g.FillPolygon(brBlack, curvePointsNos);
|
g.FillPolygon(brBlack, curvePointsNos);
|
||||||
|
|
||||||
//верхнее левое крыло
|
//верхнее левое крыло
|
||||||
Point point4 = new Point(_startPosX.Value + 50, _startPosY.Value);
|
Point point4 = new Point(_startPosX.Value + 75, _startPosY.Value + 25);
|
||||||
Point point5 = new Point(_startPosX.Value + 50, _startPosY.Value + 40);
|
Point point5 = new Point(_startPosX.Value + 75, _startPosY.Value + 65);
|
||||||
Point point6 = new Point(_startPosX.Value + 65, _startPosY.Value + 40);
|
Point point6 = new Point(_startPosX.Value + 90, _startPosY.Value + 65);
|
||||||
Point point7 = new Point(_startPosX.Value + 55, _startPosY.Value);
|
Point point7 = new Point(_startPosX.Value + 80, _startPosY.Value + 25);
|
||||||
Point[] Wings1 = { point4, point5, point6, point7 };
|
Point[] Wings1 = { point4, point5, point6, point7 };
|
||||||
g.DrawPolygon(pen, Wings1);
|
g.DrawPolygon(pen, Wings1);
|
||||||
g.FillPolygon(br, Wings1);
|
g.FillPolygon(br, Wings1);
|
||||||
|
|
||||||
//нижнее левое крыло
|
//нижнее левое крыло
|
||||||
Point point8 = new Point(_startPosX.Value + 50, _startPosY.Value + 130);
|
Point point8 = new Point(_startPosX.Value + 75, _startPosY.Value + 155);
|
||||||
Point point9 = new Point(_startPosX.Value + 50, _startPosY.Value + 70);
|
Point point9 = new Point(_startPosX.Value + 75, _startPosY.Value + 95);
|
||||||
Point point10 = new Point(_startPosX.Value + 65, _startPosY.Value + 70);
|
Point point10 = new Point(_startPosX.Value + 90, _startPosY.Value + 95);
|
||||||
Point point11 = new Point(_startPosX.Value + 55, _startPosY.Value + 130);
|
Point point11 = new Point(_startPosX.Value + 80, _startPosY.Value + 155);
|
||||||
Point[] Wings2 = { point8, point9, point10, point11 };
|
Point[] Wings2 = { point8, point9, point10, point11 };
|
||||||
g.DrawPolygon(pen, Wings2);
|
g.DrawPolygon(pen, Wings2);
|
||||||
g.FillPolygon(br, Wings2);
|
g.FillPolygon(br, Wings2);
|
||||||
|
|
||||||
//нижнее правое крыло
|
//нижнее правое крыло
|
||||||
Point point12 = new Point(_startPosX.Value + 100, _startPosY.Value + 90);
|
Point point12 = new Point(_startPosX.Value + 125, _startPosY.Value + 115);
|
||||||
Point point13 = new Point(_startPosX.Value + 100, _startPosY.Value + 70);
|
Point point13 = new Point(_startPosX.Value + 125, _startPosY.Value + 95);
|
||||||
Point point14 = new Point(_startPosX.Value + 85, _startPosY.Value + 70);
|
Point point14 = new Point(_startPosX.Value + 110, _startPosY.Value + 95);
|
||||||
Point point15 = new Point(_startPosX.Value + 90, _startPosY.Value + 90);
|
Point point15 = new Point(_startPosX.Value + 115, _startPosY.Value + 115);
|
||||||
Point[] Wings3 = { point12, point13, point14, point15 };
|
Point[] Wings3 = { point12, point13, point14, point15 };
|
||||||
g.DrawPolygon(pen, Wings3);
|
g.DrawPolygon(pen, Wings3);
|
||||||
g.FillPolygon(br, Wings3);
|
g.FillPolygon(br, Wings3);
|
||||||
|
|
||||||
//верхнее правое крыло
|
//верхнее правое крыло
|
||||||
Point point16 = new Point(_startPosX.Value + 100, _startPosY.Value + 20);
|
Point point16 = new Point(_startPosX.Value + 125, _startPosY.Value + 45);
|
||||||
Point point17 = new Point(_startPosX.Value + 100, _startPosY.Value + 40);
|
Point point17 = new Point(_startPosX.Value + 125, _startPosY.Value + 65);
|
||||||
Point point18 = new Point(_startPosX.Value + 85, _startPosY.Value + 40);
|
Point point18 = new Point(_startPosX.Value + 110, _startPosY.Value + 65);
|
||||||
Point point19 = new Point(_startPosX.Value + 90, _startPosY.Value + 20);
|
Point point19 = new Point(_startPosX.Value + 115, _startPosY.Value + 45);
|
||||||
Point[] Wings4 = { point16, point17, point18, point19 };
|
Point[] Wings4 = { point16, point17, point18, point19 };
|
||||||
g.DrawPolygon(pen, Wings4);
|
g.DrawPolygon(pen, Wings4);
|
||||||
g.FillPolygon(br, Wings4);
|
g.FillPolygon(br, Wings4);
|
||||||
|
Loading…
Reference in New Issue
Block a user