ISEbd-11-Abramov_Vladislav_LabWork02_Simple #2

Closed
Vladiislave wants to merge 2 commits from LabWork2 into LabWork1
2 changed files with 29 additions and 29 deletions
Showing only changes of commit 3d5082eb78 - Show all commits

View File

@ -38,20 +38,20 @@ public class DrawingAirBomber : DrawningPlane
if (airBomber.Engine)
{
Brush brBrown = new SolidBrush(Color.Brown);
g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5);
g.DrawRectangle(pen, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5);
g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 35, 20, 5);
g.FillRectangle(brBrown, _startPosX.Value + 65, _startPosY.Value + 70, 20, 5);
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5);
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5);
g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 60, 20, 5);
g.FillRectangle(brBrown, _startPosX.Value + 90, _startPosY.Value + 95, 20, 5);
}
//наличие дополнительных бомб
if (airBomber.Bomb)
{
Brush brGreen = new SolidBrush(Color.Green);
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8);
g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8);
g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 10, 20, 8);
g.FillRectangle(brGreen, _startPosX.Value + 30, _startPosY.Value + 90, 20, 8);
g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8);
g.DrawRectangle(pen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8);
g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 35, 20, 8);
g.FillRectangle(brGreen, _startPosX.Value + 55, _startPosY.Value + 115, 20, 8);
}
}
}

View File

@ -179,50 +179,50 @@ public class DrawningPlane
//главная часть
Brush br = new SolidBrush(EntityPlane.BodyColor);
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 100, 30);
g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 40, 100, 30);
g.DrawRectangle(pen, _startPosX.Value+25, _startPosY.Value + 65, 100, 30);
g.FillRectangle(br, _startPosX.Value+25, _startPosY.Value + 65, 100, 30);
//носовая часть
Brush brBlack = new SolidBrush(Color.Black);
Point point1 = new Point(_startPosX.Value -25, _startPosY.Value + 55);
Point point2 = new Point(_startPosX.Value, _startPosY.Value + 70);
Point point3 = new Point(_startPosX.Value, _startPosY.Value + 40);
Point point1 = new Point(_startPosX.Value, _startPosY.Value + 80);
Point point2 = new Point(_startPosX.Value + 25, _startPosY.Value + 95);
Point point3 = new Point(_startPosX.Value + 25, _startPosY.Value + 65);
Point[] curvePointsNos = { point1, point2, point3 };
g.DrawPolygon(pen, curvePointsNos);
g.FillPolygon(brBlack, curvePointsNos);
//верхнее левое крыло
Point point4 = new Point(_startPosX.Value + 50, _startPosY.Value);
Point point5 = new Point(_startPosX.Value + 50, _startPosY.Value + 40);
Point point6 = new Point(_startPosX.Value + 65, _startPosY.Value + 40);
Point point7 = new Point(_startPosX.Value + 55, _startPosY.Value);
Point point4 = new Point(_startPosX.Value + 75, _startPosY.Value + 25);
Point point5 = new Point(_startPosX.Value + 75, _startPosY.Value + 65);
Point point6 = new Point(_startPosX.Value + 90, _startPosY.Value + 65);
Point point7 = new Point(_startPosX.Value + 80, _startPosY.Value + 25);
Point[] Wings1 = { point4, point5, point6, point7 };
g.DrawPolygon(pen, Wings1);
g.FillPolygon(br, Wings1);
//нижнее левое крыло
Point point8 = new Point(_startPosX.Value + 50, _startPosY.Value + 130);
Point point9 = new Point(_startPosX.Value + 50, _startPosY.Value + 70);
Point point10 = new Point(_startPosX.Value + 65, _startPosY.Value + 70);
Point point11 = new Point(_startPosX.Value + 55, _startPosY.Value + 130);
Point point8 = new Point(_startPosX.Value + 75, _startPosY.Value + 155);
Point point9 = new Point(_startPosX.Value + 75, _startPosY.Value + 95);
Point point10 = new Point(_startPosX.Value + 90, _startPosY.Value + 95);
Point point11 = new Point(_startPosX.Value + 80, _startPosY.Value + 155);
Point[] Wings2 = { point8, point9, point10, point11 };
g.DrawPolygon(pen, Wings2);
g.FillPolygon(br, Wings2);
//нижнее правое крыло
Point point12 = new Point(_startPosX.Value + 100, _startPosY.Value + 90);
Point point13 = new Point(_startPosX.Value + 100, _startPosY.Value + 70);
Point point14 = new Point(_startPosX.Value + 85, _startPosY.Value + 70);
Point point15 = new Point(_startPosX.Value + 90, _startPosY.Value + 90);
Point point12 = new Point(_startPosX.Value + 125, _startPosY.Value + 115);
Point point13 = new Point(_startPosX.Value + 125, _startPosY.Value + 95);
Point point14 = new Point(_startPosX.Value + 110, _startPosY.Value + 95);
Point point15 = new Point(_startPosX.Value + 115, _startPosY.Value + 115);
Point[] Wings3 = { point12, point13, point14, point15 };
g.DrawPolygon(pen, Wings3);
g.FillPolygon(br, Wings3);
//верхнее правое крыло
Point point16 = new Point(_startPosX.Value + 100, _startPosY.Value + 20);
Point point17 = new Point(_startPosX.Value + 100, _startPosY.Value + 40);
Point point18 = new Point(_startPosX.Value + 85, _startPosY.Value + 40);
Point point19 = new Point(_startPosX.Value + 90, _startPosY.Value + 20);
Point point16 = new Point(_startPosX.Value + 125, _startPosY.Value + 45);
Point point17 = new Point(_startPosX.Value + 125, _startPosY.Value + 65);
Point point18 = new Point(_startPosX.Value + 110, _startPosY.Value + 65);
Point point19 = new Point(_startPosX.Value + 115, _startPosY.Value + 45);
Point[] Wings4 = { point16, point17, point18, point19 };
g.DrawPolygon(pen, Wings4);
g.FillPolygon(br, Wings4);