* Advance to the next player turn in order.
*/
@Override
protected void doAdvanceToNextPlayer() {
PokerGameViewer pviewer = (PokerGameViewer) getViewer();
pviewer.refresh();
advanceToNextPlayerIndex();
if (round.roundOver(getPlayers(), playIndex_)) {
// every player left in the game has called.
//PokerRound round = pviewer.createMove(getLastMove());
// records the result on the board.
makeMove(round);
pviewer.refresh();
doRoundOverBookKeeping(pviewer);
}
// show message when done.
// moved from above.
if (isDone()) {
pviewer.sendGameChangedEvent(null);
}
if (!getCurrentPlayer().isHuman() && !isDone()) {
pviewer.doComputerMove(getCurrentPlayer());
}
// fire game changed event
pviewer.sendGameChangedEvent(null);
}