public void arrangeTurn(NEplayer player) {
debug("Asking " + player.getName() + " for his doing...",false);
boolean endOfTuren = false;
while (!endOfTuren) {
NEMessage m = player.sendAndWait(new NEYourTurnMessage(), NEMessage.TRANSAKTION);
NETransaktionMessage transMessage = (NETransaktionMessage) m;
if (transMessage.getContent() instanceof NEEndOfTurnTransaktion) {
endOfTuren = true;
} else {
transMessage.getContent().DoTransaktion(gameServer);
notifyTransaktion(transMessage.getContent());
}
}
debug("turn done!",false);
}