diff --git a/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs b/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs index a080e88..3eec57f 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/DrawingShip.cs @@ -151,8 +151,9 @@ namespace Lab1ContainersShip.DrawingObjects Pen pen = new Pen(Color.Black); //Brush adbrush = new SolidBrush(EntityShip.AdditionalColor); Brush brBlue = new SolidBrush(Color.Blue); + Brush brBody = new SolidBrush(EntityShip.BodyColor); // заполнение борта - g.FillPolygon(brBlue, new PointF[] + g.FillPolygon(brBody, new PointF[] { new PointF(_startPosX, _startPosY+45), new PointF(_startPosX+20, _startPosY+65), diff --git a/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs b/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs index 6cd7276..a936e3a 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/DrawningObjectShip.cs @@ -32,5 +32,9 @@ namespace Lab1ContainersShip.MovementStrategy _drawingShip?.CanMove(direction) ?? false; public void MoveObject(Direction direction) => _drawingShip?.MoveTransport(direction); + public void DopMeth(Direction direction) + { + Console.WriteLine("метод работает" + direction); + } } } diff --git a/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs b/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs index 80123fa..13e9fda 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/IMoveableObject.cs @@ -31,6 +31,7 @@ namespace Lab1ContainersShip.MovementStrategy /// /// Направление void MoveObject(Direction direction); + void DopMeth(Direction direction); } }