From 69a8cc5ae404435d615a3a4169d4649eeaf6468c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81?= Date: Thu, 20 Feb 2025 21:31:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F1(=D0=A4=D0=B8=D0=BD=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9=D0=A4=D0=B8=D0=BD=D0=B0=D0=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projekt/Projekt/DirectionType.cs | 7 +------ Projekt/Projekt/DrawingTank.cs | 14 +++++++------- Projekt/Projekt/FormTank.cs | 11 +---------- 3 files changed, 9 insertions(+), 23 deletions(-) diff --git a/Projekt/Projekt/DirectionType.cs b/Projekt/Projekt/DirectionType.cs index baa2bcb..6874086 100644 --- a/Projekt/Projekt/DirectionType.cs +++ b/Projekt/Projekt/DirectionType.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace Projekt; /// /// Направление перемещения diff --git a/Projekt/Projekt/DrawingTank.cs b/Projekt/Projekt/DrawingTank.cs index b699a24..308729e 100644 --- a/Projekt/Projekt/DrawingTank.cs +++ b/Projekt/Projekt/DrawingTank.cs @@ -26,11 +26,11 @@ public class DrawingTank /// /// Ширина прорисовки танка /// - private readonly int _drawningTankWidth = 160; + private readonly int _drawningTankWidth = 150; /// /// Высота прорисовки танка /// - private readonly int _drawningTankHeight = 60; + private readonly int _drawningTankHeight = 62; /// /// Инициализация свойств /// @@ -145,7 +145,7 @@ public class DrawingTank if (_startPosY.Value + _drawningTankHeight < _pictureHeight) { _startPosY += (int)EntityTank.Step; - } + } return true; default: return false; @@ -166,10 +166,10 @@ public class DrawingTank //пушка if (EntityTank.TankTurret) { - g.FillRectangle(MainBrush, _startPosX.Value + 70, _startPosY.Value + 15, 80, 8); - g.FillRectangle(MainBrush, _startPosX.Value + 140, _startPosY.Value + 14, 10, 10); - g.FillRectangle(brWhite, _startPosX.Value + 143, _startPosY.Value + 16, 5, 2); - g.FillRectangle(brWhite, _startPosX.Value + 143, _startPosY.Value + 20, 5, 2); + g.FillRectangle(MainBrush, _startPosX.Value + 70, _startPosY.Value + 15, 70, 8); + g.FillRectangle(MainBrush, _startPosX.Value + 130, _startPosY.Value + 14, 10, 10); + g.FillRectangle(brWhite, _startPosX.Value + 133, _startPosY.Value + 16, 5, 2); + g.FillRectangle(brWhite, _startPosX.Value + 133, _startPosY.Value + 20, 5, 2); } //границы танка g.FillRectangle(MainBrush, _startPosX.Value + 20, _startPosY.Value + 10, 50, 20); diff --git a/Projekt/Projekt/FormTank.cs b/Projekt/Projekt/FormTank.cs index 883e4ba..8c7de24 100644 --- a/Projekt/Projekt/FormTank.cs +++ b/Projekt/Projekt/FormTank.cs @@ -1,13 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - + namespace Projekt { public partial class FormTank : Form