готово

This commit is contained in:
Казначеева Елизавета 2023-10-11 10:25:33 +04:00
parent bc2493c8bc
commit eff115d3da

View File

@ -75,7 +75,8 @@ namespace Battleship.DrawningObjects
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;