сдача

This commit is contained in:
AnnaLioness 2023-10-10 12:10:05 +04:00
parent ec4543b521
commit 92cdbb3813
3 changed files with 7 additions and 1 deletions

View File

@ -151,8 +151,9 @@ namespace Lab1ContainersShip.DrawingObjects
Pen pen = new Pen(Color.Black); Pen pen = new Pen(Color.Black);
//Brush adbrush = new SolidBrush(EntityShip.AdditionalColor); //Brush adbrush = new SolidBrush(EntityShip.AdditionalColor);
Brush brBlue = new SolidBrush(Color.Blue); 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, _startPosY+45),
new PointF(_startPosX+20, _startPosY+65), new PointF(_startPosX+20, _startPosY+65),

View File

@ -32,5 +32,9 @@ namespace Lab1ContainersShip.MovementStrategy
_drawingShip?.CanMove(direction) ?? false; _drawingShip?.CanMove(direction) ?? false;
public void MoveObject(Direction direction) => public void MoveObject(Direction direction) =>
_drawingShip?.MoveTransport(direction); _drawingShip?.MoveTransport(direction);
public void DopMeth(Direction direction)
{
Console.WriteLine("метод работает" + direction);
}
} }
} }

View File

@ -31,6 +31,7 @@ namespace Lab1ContainersShip.MovementStrategy
/// </summary> /// </summary>
/// <param name="direction">Направление</param> /// <param name="direction">Направление</param>
void MoveObject(Direction direction); void MoveObject(Direction direction);
void DopMeth(Direction direction);
} }
} }