PIbd-21. Kryukov A.I. Lab work 02 #15
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user