PIbd-22 Kaznacheeva E.K. LabWork_2 #2

Merged
kaznacheeva merged 3 commits from LabWork_02 into LabWork_01 2023-10-11 10:31:13 +04:00
Showing only changes of commit eff115d3da - Show all commits

View File

@ -69,13 +69,14 @@ namespace Battleship.DrawningObjects
/// <param name="weight">Вес</param>
/// <param name="bodyColor">Основной цвет</param>
/// <param name="width">Ширина картинки</param>
/// <param name="height">Высота картинки</param>
/// <param name="height">Высота картинки</param>
/// <param name="buttleshipWidth">Ширина прорисовки автомобиля</param>
/// <param name="buttleshipHeight">Высота прорисовки автомобиля</param>
protected DrawningShip(int speed, double weight, Color bodyColor, int
width, int height, int buttleshipWidth, int buttleshipHeight)
{
// TODO: Продумать проверки
if (width <= _buttleshipWidth || height <= _buttleshipHeight)
return;
_pictureWidth = width;
_pictureHeight = height;
_buttleshipWidth = buttleshipWidth;