Lab_2_Kryukov_AI_Excavator
This commit is contained in:
parent
c42834e908
commit
e8437e26f6
@ -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…
x
Reference in New Issue
Block a user