List<SeatedPlayer> players = new ArrayList<SeatedPlayer>();
PlayerId dealerId = null;
//only send players that actually sit in AND are ingame in the new deal event.
for(int i:dealtTo){
PlayerState p = getGameState().getPlayer(new PlayerId(i));
players.add(new SeatedPlayer(p.getPlayerId(),p.getSeatId(),p.getName(),p.getStack(), p.getBet(), true, false));
if(p.getSeatId().getId() == dealer.getDealer()){
dealerId = p.getPlayerId();
}
}
if(dealerId == null) throw new IllegalSelectorException();