ввпчя
This commit is contained in:
commit
437d7894e2
@ -155,8 +155,7 @@ namespace Lab1ContainersShip.DrawingObjects
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Pen pen = new Pen(Color.Black);
|
Pen pen = new Pen(Color.Black);
|
||||||
|
|
||||||
Brush brBlue = new SolidBrush(Color.Blue);
|
|
||||||
Brush brBody = new SolidBrush(EntityShip.BodyColor);
|
Brush brBody = new SolidBrush(EntityShip.BodyColor);
|
||||||
// заполнение борта
|
// заполнение борта
|
||||||
g.FillPolygon(brBody, new PointF[]
|
g.FillPolygon(brBody, new PointF[]
|
||||||
|
@ -32,5 +32,6 @@ 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user