PIbd-22 Kaznacheeva E.K. LabWork_2 #2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user