PIbd_13_Klykov_N.V._Simple #1
@ -147,14 +147,14 @@ public class DrawningExcavator
|
||||
return true;
|
||||
// вправо
|
||||
case DirectionType.Right:
|
||||
if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth.Value)
|
||||
if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth)
|
||||
{
|
||||
_startPosX += (int)EntityExcavator.Step;
|
||||
}
|
||||
return true;
|
||||
//вниз
|
||||
case DirectionType.Down:
|
||||
if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight.Value)
|
||||
if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight)
|
||||
{
|
||||
_startPosY += (int)EntityExcavator.Step;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user