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); } } }
public void callMoveToQuadrantParams(Direction direction) throws Exception { turn(direction); fire(); move(direction); }