Lab_2_Kryukov_AI_Excavator

This commit is contained in:
1SooNoo1 2023-10-10 23:02:29 +04:00
parent c42834e908
commit e8437e26f6

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);