From 7668db2e11d3449ac73b896ad61cf65efec88877 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Mon, 13 Nov 2023 02:28:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/Tank/DrawArmoVehicle.cs | 1 - Tank/Tank/EntityArmoVehicle.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Tank/Tank/DrawArmoVehicle.cs b/Tank/Tank/DrawArmoVehicle.cs index fa84dd5..8c7a09f 100644 --- a/Tank/Tank/DrawArmoVehicle.cs +++ b/Tank/Tank/DrawArmoVehicle.cs @@ -56,7 +56,6 @@ namespace Tank Direction.Right => _startPosX + _Width + Tank.Step < _pictureWidth, Direction.Down => _startPosY + _Height + Tank.Step < _pictureHeight, _ => false - }; } diff --git a/Tank/Tank/EntityArmoVehicle.cs b/Tank/Tank/EntityArmoVehicle.cs index 13b7bd2..f8c2a31 100644 --- a/Tank/Tank/EntityArmoVehicle.cs +++ b/Tank/Tank/EntityArmoVehicle.cs @@ -10,7 +10,7 @@ namespace Tank { public int Speed { get; private set; } public double Weight { get; private set; } - public Color BodyColor { get; set; } + public Color BodyColor { get; private set; } public void setBodyColor(Color color) { BodyColor = color; } public double Step => (double)Speed * 100 / Weight; public EntityArmoVehicle(int speed, double weight, Color bodyColor)