From 7fb180fd99d56f69e65fb7a66cbff088cf16511a Mon Sep 17 00:00:00 2001 From: Tonb73 Date: Mon, 4 Mar 2024 07:54:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=D1=8E=20=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drawnings/DrawningElectricLocomotive.cs | 1 + ProjectElectricLocomotive/Drawnings/DrawningLocomotive.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ProjectElectricLocomotive/Drawnings/DrawningElectricLocomotive.cs b/ProjectElectricLocomotive/Drawnings/DrawningElectricLocomotive.cs index 2270eb2..6fb4841 100644 --- a/ProjectElectricLocomotive/Drawnings/DrawningElectricLocomotive.cs +++ b/ProjectElectricLocomotive/Drawnings/DrawningElectricLocomotive.cs @@ -32,6 +32,7 @@ namespace ProjectElectricLocomotive.Drawnings pantograph, batterystorage); } + public override void DrawTransport(Graphics g) { if (EntityLocomotive == null || EntityLocomotive is not EntityElectricLocomotive electricLocomotive || !_startPosX.HasValue || !_startPosY.HasValue) diff --git a/ProjectElectricLocomotive/Drawnings/DrawningLocomotive.cs b/ProjectElectricLocomotive/Drawnings/DrawningLocomotive.cs index e05df50..605506c 100644 --- a/ProjectElectricLocomotive/Drawnings/DrawningLocomotive.cs +++ b/ProjectElectricLocomotive/Drawnings/DrawningLocomotive.cs @@ -34,11 +34,11 @@ public class DrawningLocomotive /// /// Ширина прорисовки Локомотива /// - private readonly int _drawningLocomotiveWidth = 155; + public readonly int _drawningLocomotiveWidth = 155; /// /// Высота прорисовки локомотива /// - private readonly int _drawningLocomotiveHeight = 90; + public readonly int _drawningLocomotiveHeight = 90; /// /// Координата X объекта @@ -146,7 +146,7 @@ public class DrawningLocomotive _startPosX = x; _startPosY = y; } - public bool MoveTransport(DirectionType direction) + public bool MoveTransport(DirectionType direction) { if (EntityLocomotive == null || !_startPosX.HasValue || !_startPosY.HasValue)