Пример #1
0
 public void clean() throws Exception {
   af.countNonEmptyCells();
   moveToQuadrant(1, 1);
   turn(Direction.RIGHT);
   while (af.checkFieldEmpty() == false) {
     fire();
     if (af.checkBulletOutOfField() == true) {
       move(Direction.DOWN);
       turn(Direction.RIGHT);
     }
   }
 }
Пример #2
0
 public void callMoveToQuadrantParams(Direction direction) throws Exception {
   turn(direction);
   fire();
   move(direction);
 }