Пример #1
0
 public void MoveOneStep(ISlmmService slmmService)
 {
     if (--slmmService.SmartMower.CurrentY < 1)
     {
         slmmService.SmartMower.CurrentY = 1;
         slmmService.Turn90();
         slmmService.Turn90();
         slmmService.SmartMower.Direction = DirectionEnum.Direction.North;
         slmmService.Clockwise            = true;
         _xCoordinateService.CheckXValues(slmmService);
         slmmService.SlmMove = slmmService.GetSlmmMoveDirection();
     }
     base.PrintPosition(slmmService.SmartMower);
 }
Пример #2
0
        public void MoveOneStep(ISlmmService slmmService)
        {
            if (++slmmService.SmartMower.CurrentY > slmmService.SmartMower.MaxY)
            {
                _xCoordinateService.CheckXValues(slmmService);

                slmmService.Turn90();
                slmmService.Turn90();
                slmmService.SmartMower.Direction = DirectionEnum.Direction.South;
                slmmService.Clockwise            = false;
                slmmService.SmartMower.CurrentY  = slmmService.SmartMower.MaxY;
                slmmService.SlmMove = slmmService.GetSlmmMoveDirection();
            }
            PrintPosition(slmmService.SmartMower);
        }
Пример #3
0
 public void MoveOneStep(ISlmmService slmm)
 {
     slmm.Clockwise = true;
     slmm.Turn90();
     slmm.SmartMower.Direction = DirectionEnum.Direction.North;
     slmm.SlmMove = slmm.GetSlmmMoveDirection();
     base.PrintPosition(slmm.SmartMower);
 }