готово
This commit is contained in:
parent
bc2493c8bc
commit
eff115d3da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user