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