diff --git a/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs b/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs index c8aeb29..af7b2b5 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs @@ -155,8 +155,7 @@ namespace Lab1ContainersShip.DrawingObjects return; } Pen pen = new Pen(Color.Black); - - Brush brBlue = new SolidBrush(Color.Blue); + Brush brBody = new SolidBrush(EntityShip.BodyColor); // заполнение борта g.FillPolygon(brBody, new PointF[] diff --git a/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs b/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs index 6cd7276..ab6de85 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs @@ -32,5 +32,6 @@ namespace Lab1ContainersShip.MovementStrategy _drawingShip?.CanMove(direction) ?? false; public void MoveObject(Direction direction) => _drawingShip?.MoveTransport(direction); + } } diff --git a/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs b/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs index 80123fa..3522b86 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs @@ -31,6 +31,7 @@ namespace Lab1ContainersShip.MovementStrategy /// /// Направление void MoveObject(Direction direction); + } }