public final static String ACTIVE_PLAYER_ID = "Active Player";
public final static String INACTIVE_PLAYER_ID = "Inactive Player";
protected Player getDefaultPlayer(Collection<Player> players) {
YouLosePlayer youLosePlayer;
for(Player player : players) {
if(player == null || !(player instanceof YouLosePlayer)) {
throw new IllegalArgumentException();
} else {
youLosePlayer = (YouLosePlayer)player;
}
if(isPlayerIdDefault(youLosePlayer.getId())) {
return youLosePlayer;
}
}
return null;
}