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 a2153b7..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; - } } } diff --git a/Battleship/Battleship/EntityShip.cs b/Battleship/Battleship/EntityShip.cs index e46dcc4..ea7eef1 100644 --- a/Battleship/Battleship/EntityShip.cs +++ b/Battleship/Battleship/EntityShip.cs @@ -38,7 +38,7 @@ namespace Battleship.Entities BodyColor = bodyColor; } - internal void setBodyColor(Color color) + public void setBodyColor(Color color) { BodyColor = color; }