From 950258932e463bab8c039d88f374b6e48ca9d9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Thu, 8 Dec 2022 18:48:05 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Locomotives/Locomotives/AbstractMap.cs | 14 +++++++------- .../Locomotives/DrawningObjectLocomotive.cs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Locomotives/Locomotives/AbstractMap.cs b/Locomotives/Locomotives/AbstractMap.cs index 2b9f59c..a350ff0 100644 --- a/Locomotives/Locomotives/AbstractMap.cs +++ b/Locomotives/Locomotives/AbstractMap.cs @@ -60,13 +60,13 @@ /// public (int Top, int Bottom, int Left, int Right) GetObjectCoordinates() { - return - ( - (int)(_drawningObject.GetCurrentPosition().Top / _size_y), - (int)(_drawningObject.GetCurrentPosition().Bottom / _size_y), - (int)(_drawningObject.GetCurrentPosition().Left / _size_x), - (int)(_drawningObject.GetCurrentPosition().Right / _size_x) - ); + return + ( + (int)(_drawningObject.GetCurrentPosition().Top / _size_y), + (int)(_drawningObject.GetCurrentPosition().Bottom / _size_y), + (int)(_drawningObject.GetCurrentPosition().Left / _size_x), + (int)(_drawningObject.GetCurrentPosition().Right / _size_x) + ); } /// /// Проверка возможности движения в данном направлении diff --git a/Locomotives/Locomotives/DrawningObjectLocomotive.cs b/Locomotives/Locomotives/DrawningObjectLocomotive.cs index ddba1ce..596bd59 100644 --- a/Locomotives/Locomotives/DrawningObjectLocomotive.cs +++ b/Locomotives/Locomotives/DrawningObjectLocomotive.cs @@ -1,8 +1,8 @@ namespace Locomotives { - /// - /// Класс-наследник от интерфейса (реализация) - /// +/// +/// Класс-наследник от интерфейса (реализация) +/// internal class DrawningObjectLocomotive : IDrawningObject { ///