Лёвушкина Анна, ПИбд-21, лаб2 простая #2

Closed
AnnaLioness wants to merge 7 commits from лаб2 into containerShip_base
3 changed files with 7 additions and 1 deletions
Showing only changes of commit 92cdbb3813 - Show all commits

View File

@ -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),

View File

@ -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);
}
}
}

View File

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