Esempio n. 1
0
 private void test() {
   info.setRemoteActiveState(0); // deactivate potential enemy on field ahead.
   ScanResult scan = control.scan();
   if (!scan.isEmpty()) {
     examine(scan);
   }
 }
Esempio n. 2
0
 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!
   }
 }