private void test() { info.setRemoteActiveState(0); // deactivate potential enemy on field ahead. ScanResult scan = control.scan(); if (!scan.isEmpty()) { examine(scan); } }
private void examine(ScanResult scan) { if (scan.isEnemy()) { // is it a friend? manipulate(); // no. Away with his program! } else { // friend info.setRemoteActiveState(1); // re-activate changeRow(); // Better get away: next row! } }