From c8a60fa26fa3d2191df3e2deb15d39e7bbe1ee0c Mon Sep 17 00:00:00 2001 From: kaznacheeva Date: Wed, 6 Dec 2023 10:10:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Battleship/Battleship/DrawningBattleship.cs | 4 ---- Battleship/Battleship/DrawningShip.cs | 8 -------- 2 files changed, 12 deletions(-) diff --git a/Battleship/Battleship/DrawningBattleship.cs b/Battleship/Battleship/DrawningBattleship.cs index 524c6ba..c0c8d7a 100644 --- a/Battleship/Battleship/DrawningBattleship.cs +++ b/Battleship/Battleship/DrawningBattleship.cs @@ -48,9 +48,5 @@ namespace Battleship.DrawningObjects g.DrawRectangle(pen, _startPosX + 75, _startPosY + 70, 40, 10); } } - public void SetAddColor(Color color) - { - ((EntityBattleship)EntityShip).AdditionalColor = color; - } } } diff --git a/Battleship/Battleship/DrawningShip.cs b/Battleship/Battleship/DrawningShip.cs index ef435bf..6a56b76 100644 --- a/Battleship/Battleship/DrawningShip.cs +++ b/Battleship/Battleship/DrawningShip.cs @@ -224,14 +224,6 @@ namespace Battleship.DrawningObjects break; } } - public void SetColor(Color color) - { - if(EntityShip == null) - { - return; - } - EntityShip.BodyColor = color; - } } }