PIbd-21. Kryukov A.I. Lab work 02 #15

Closed
SooNooClose wants to merge 10 commits from lab_2 into lab_1
Showing only changes of commit e8437e26f6 - Show all commits

View File

@ -63,7 +63,10 @@ namespace ProjectExcavator.DrawningObjects
public DrawningExcavator(int speed, double weight, Color bodyColor, int
width, int height)
{
// TODO: Продумать проверки
if (_pictureHeight < _excavatorHeight || _pictureWidth < _excavatorWidth)
{
return;
}
_pictureWidth = width;
_pictureHeight = height;
EntityExcavator = new EntityExcavator(speed, weight, bodyColor);