Лёвушкина Анна, ПИбд-21, лаб2 простая #2
@ -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),
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user