From ef542b664e025618cfc90c6689f196f9cd3365d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BE=D1=84=D1=8C=D1=8F=20=D0=AF=D0=BA=D0=BE=D0=B1?= =?UTF-8?q?=D1=87=D1=83=D0=BA?= Date: Tue, 28 Nov 2023 00:53:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D1=81=D0=B2=D0=BE=D0=B9=D1=81=D1=82=D0=B2=D0=B0=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B0=D1=81=D1=81=D0=B0=20DrawningBoat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sailboat/Sailboat/DrawingBoat.cs | 43 +++----------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/Sailboat/Sailboat/DrawingBoat.cs b/Sailboat/Sailboat/DrawingBoat.cs index b004686..7fd02a7 100644 --- a/Sailboat/Sailboat/DrawingBoat.cs +++ b/Sailboat/Sailboat/DrawingBoat.cs @@ -5,6 +5,7 @@ using System.Text; using System.Threading.Tasks; using Sailboat.Entities; +using Sailboat.MovementStrategy; namespace Sailboat.DrawingObjects { @@ -13,58 +14,20 @@ namespace Sailboat.DrawingObjects /// public class DrawingBoat { - /// - /// Класс-сущность - /// public EntityBoat? EntityBoat { get; protected set; } - - /// - /// Ширина окна - /// private int _pictureWidth; - - /// - /// Высота окна - /// private int _pictureHeight; - - /// - /// Левая координата прорисовки лодки - /// protected int _startPosX; - - /// - /// Верхняя кооридната прорисовки лодки - /// protected int _startPosY; - - /// - /// Верхняя кооридната прорисовки лодки - /// private readonly int _boatWidth = 185; - - /// - /// Высота прорисовки лодки - /// private readonly int _boatHeight = 160; - - /// - /// Координата X объекта - /// public int GetPosX => _startPosX; - /// - /// Координата Y объекта - /// public int GetPosY => _startPosY; - /// - /// Ширина объекта - /// public int GetWidth => _boatWidth; - /// - /// Высота объекта - /// public int GetHeight => _boatHeight; + public IMoveableObject GetMoveableObject => new DrawingObjectBoat(this); + /// /// Конструктор ///