Example #1
0
  private void getTarget() {
    int[] message = getFirstMessageOfType(roundSignals, MessageType.TARGET);
    if (message == null) {
      return;
    }

    attackTarget = MessageParser.getRobotData(message);
    // setIndicatorString(2, "my target is " + attackTarget);
  }
Example #2
0
 public void getEnemyLocation() {
   int[] message = getFirstMessageOfType(roundSignals, MessageType.ENEMY);
   if (message != null) {
     enemyLocation = MessageParser.getRobotData(message).location;
   }
 }