From d7da54c10d35a1cdbec753a72a7c03ce9ffa49d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A3=D1=87=D0=B5=D0=B1=D0=BD=D1=8B=D0=B9?= Date: Sun, 26 Nov 2023 17:35:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D1=84=D0=B8=D0=BA=D1=81=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectBoat_bae/DrawningObjects/DrawningBoat.cs | 9 ++++----- .../ProjectBoat_bae/Generics/BoatsGenericCollection.cs | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ProjectBoat_base/ProjectBoat_bae/DrawningObjects/DrawningBoat.cs b/ProjectBoat_base/ProjectBoat_bae/DrawningObjects/DrawningBoat.cs index 5a598ab..2301fcc 100644 --- a/ProjectBoat_base/ProjectBoat_bae/DrawningObjects/DrawningBoat.cs +++ b/ProjectBoat_base/ProjectBoat_bae/DrawningObjects/DrawningBoat.cs @@ -92,14 +92,13 @@ namespace ProjectBoat_bae.DrawningObjects //мотор Brush brRed = new SolidBrush(EntityBoat.BodyColor); - g.FillEllipse(brRed, _startPosX + 7, _startPosY + 12, 35, 35); + g.FillEllipse(brRed, _startPosX + 7, _startPosY + 72, 35, 35); //стекла Brush brBlue = new SolidBrush(Color.LightBlue); - g.FillRectangle(brBlue, _startPosX + 115, _startPosY + 10, 5, - 40); - g.FillRectangle(brBlue, _startPosX + 65, _startPosY + 8, 55, 2); - g.FillRectangle(brBlue, _startPosX + 65, _startPosY + 51, 55, 2); + g.FillRectangle(brBlue, _startPosX + 95, _startPosY + 67, 5, 45); + g.FillRectangle(brBlue, _startPosX + 45, _startPosY + 67, 55, 2); + g.FillRectangle(brBlue, _startPosX + 45, _startPosY + 111, 55, 2); } // Проверка, что объект может переместится по указанному направлению diff --git a/ProjectBoat_base/ProjectBoat_bae/Generics/BoatsGenericCollection.cs b/ProjectBoat_base/ProjectBoat_bae/Generics/BoatsGenericCollection.cs index 39a7fad..0e98ef6 100644 --- a/ProjectBoat_base/ProjectBoat_bae/Generics/BoatsGenericCollection.cs +++ b/ProjectBoat_base/ProjectBoat_bae/Generics/BoatsGenericCollection.cs @@ -20,10 +20,10 @@ namespace ProjectBoat_bae.Generics /// /// Размер занимаемого объектом места (ширина) /// - private readonly int _placeSizeWidth = 100; + private readonly int _placeSizeWidth = 150; // Размер занимаемого объектом места (высота) - private readonly int _placeSizeHeight = 70; + private readonly int _placeSizeHeight = 150; // Набор объектов private readonly SetGeneric _collection;