Лабораторная работа №1
This commit is contained in:
parent
93f658233b
commit
81bbd8fb14
@ -147,14 +147,14 @@ public class DrawningExcavator
|
|||||||
return true;
|
return true;
|
||||||
// вправо
|
// вправо
|
||||||
case DirectionType.Right:
|
case DirectionType.Right:
|
||||||
if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth.Value)
|
if (_startPosX.Value + _drawningExcavatorWidth + EntityExcavator.Step < _pictureWidth)
|
||||||
{
|
{
|
||||||
_startPosX += (int)EntityExcavator.Step;
|
_startPosX += (int)EntityExcavator.Step;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
//вниз
|
//вниз
|
||||||
case DirectionType.Down:
|
case DirectionType.Down:
|
||||||
if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight.Value)
|
if (_startPosY.Value + _drawningExcavatorHeight + EntityExcavator.Step < _pictureHeight)
|
||||||
{
|
{
|
||||||
_startPosY += (int)EntityExcavator.Step;
|
_startPosY += (int)EntityExcavator.Step;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user