for (char enemy : enemies) { | for (char enemy : enemies) { | ||||
if (view.data.contains(Character.toString(enemy))) { | if (view.data.contains(Character.toString(enemy))) { | ||||
enemyDetected = true; | enemyDetected = true; | ||||
System.out.println("There is an enemy!"); | |||||
break; | break; | ||||
} | } | ||||
} | } |