From 72a71f346bafef3fb0c3235c96cafff6f0b73dd0 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Wed, 13 Sep 2023 17:11:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=201?= =?UTF-8?q?=20=D0=BB=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/Tank/DrawingTank.cs | 4 +++- Tank/Tank/EntityTank.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Tank/Tank/DrawingTank.cs b/Tank/Tank/DrawingTank.cs index 668d781..8f73c5a 100644 --- a/Tank/Tank/DrawingTank.cs +++ b/Tank/Tank/DrawingTank.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace Tank { - internal class DrawingTank + public class DrawingTank { public EntityTank Tank { get; set; } private int _startPosX; @@ -83,10 +83,12 @@ namespace Tank } Pen pen = new(Color.Black); + // Отрисовка танковых катков Brush BrushBlack = new SolidBrush(Color.Black); g.FillEllipse(BrushBlack, _startPosX + 113, _startPosY + 41, 11, 11); g.FillEllipse(BrushBlack, _startPosX + 13, _startPosY + 40, 11, 11); + // Гусеница Brush BrushGray = new SolidBrush(Color.DarkGray); g.DrawEllipse(pen, _startPosX + 10, _startPosY + 30, 120, 30); diff --git a/Tank/Tank/EntityTank.cs b/Tank/Tank/EntityTank.cs index 0462d23..8eae7ba 100644 --- a/Tank/Tank/EntityTank.cs +++ b/Tank/Tank/EntityTank.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace Tank { - internal class EntityTank + public class EntityTank { public int Speed { get; private set; } public float Weight { get; private set; }