diff --git a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs index 83b5b1b..02e2b0d 100644 --- a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs +++ b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs @@ -204,27 +204,32 @@ public class DrawningArtilleryUnit { return; } - Pen pen = new(EntityArtilleryUnit.BodyColor, 2); - Brush additionalBrush = new SolidBrush(Color.Black); + Pen pen = new(Color.Black, 2); + Pen pen2 = new(Color.Black, 3); + Brush Brush = new SolidBrush(EntityArtilleryUnit.BodyColor); - //границы круисера - g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value + 105, _startPosY.Value); - g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value, _startPosX.Value + 147, _startPosY.Value + 24); + //границы танка + Point[] points = { new Point(_startPosX.Value + 60, _startPosY.Value + 6), new Point(_startPosX.Value + 110, _startPosY.Value + 6), new Point(_startPosX.Value + 110, _startPosY.Value + 11), new Point(_startPosX.Value + 80, _startPosY.Value + 21), new Point(_startPosX.Value + 60, _startPosY.Value + 21), new Point(_startPosX.Value + 45, _startPosY.Value + 16), new Point(_startPosX.Value + 45, _startPosY.Value + 11) }; + g.FillPolygon(Brush, points); + g.DrawPolygon(pen, points); - g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 49, _startPosX.Value + 105, _startPosY.Value + 49); - g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value + 49, _startPosX.Value + 147, _startPosY.Value + 24); + g.FillRectangle(Brush, _startPosX.Value + 7, _startPosY.Value + 21, 132, 10); + g.DrawRectangle(pen, _startPosX.Value + 7, _startPosY.Value + 21, 132, 10); - g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value, _startPosY.Value + 49); - //внутренности круисера - g.DrawEllipse(pen, _startPosX.Value + 94, _startPosY.Value + 14, 19, 19); - - g.DrawRectangle(pen, _startPosX.Value + 63, _startPosY.Value + 11, 21, 28); - g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value + 17, 28, 14); - - //зад - g.FillRectangle(additionalBrush, _startPosX.Value - 3, _startPosY.Value + 7, 3, 14); - g.FillRectangle(additionalBrush, _startPosX.Value - 3, _startPosY.Value + 26, 3, 14); + g.DrawArc(pen, _startPosX.Value, _startPosY.Value + 6 + 22, 25, 25, 70, 200); + g.DrawArc(pen, _startPosX.Value + 122, _startPosY.Value + 28, 25, 25, 260, 200); + g.DrawLine(pen, _startPosX.Value + 10, _startPosY.Value + 29, _startPosX.Value + 135, _startPosY.Value + 29); + g.DrawLine(pen, _startPosX.Value + 10, _startPosY.Value + 53, _startPosX.Value + 135, _startPosY.Value + 53); + g.DrawEllipse(pen2, _startPosX.Value + 5, _startPosY.Value + 31, 18, 18); + g.DrawEllipse(pen2, _startPosX.Value + 125, _startPosY.Value + 31, 18, 18); + g.DrawEllipse(pen2, _startPosX.Value + 103, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 34, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 57, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 80, _startPosY.Value + 37, 12, 12); + g.DrawArc(pen, _startPosX.Value + 47, _startPosY.Value + 24, 10, 10, 0, 170); + g.DrawArc(pen, _startPosX.Value + 70, _startPosY.Value + 24, 10, 10, 0, 170); + g.DrawArc(pen, _startPosX.Value + 93, _startPosY.Value + 24, 10, 10, 0, 170); } } \ No newline at end of file