Пример #1
0
 public void Change(IReturnAlgorithm returnAlgorithm, IRobotCleaner robot)
 {
     returnAlgorithm.Step = new FourthStep();
     robot.TurnLeft();
     robot.TurnLeft();
     robot.Advance();
 }
Пример #2
0
 public void Change(IReturnAlgorithm returnAlgorithm, IRobotCleaner robot)
 {
     returnAlgorithm.Step = new FifthStep();
     robot.TurnRight();
     robot.Back();
     robot.TurnRight();
     robot.Advance();
 }
Пример #3
0
 public void Execute(IRobotCleaner robotCleaner)
 {
     robotCleaner.Advance();
 }