Exemplo n.º 1
0
 public static void testRobot(robot obj)
 {
     printRobotCoord(obj);
     Console.WriteLine("used moveone()");
     obj.MoveOne();
     printRobotCoord(obj);
     obj.Move();
     Console.WriteLine("used move()");
     printRobotCoord(obj);
 }
Exemplo n.º 2
0
 /*
  * PreCondition:none
  * PostCondition: uses moveone() the robot depending on the type of robot robotObj is
  */
 public void MoveOne()
 {
     robotObj.MoveOne();
     Check();
 }