From 82c58a1eae3c818274db1b29c5d539f174060835 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 8 May 2011 18:10:07 +0200 Subject: getPlayer entfernt, weil es getNthNextPlayer gibt. Warnings beseitigt. git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@170 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/RoundControl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/jrummikub/control') diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index 231b860..efa6f62 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -66,7 +66,7 @@ public class RoundControl { void deal() { for (int i = 0; i < gameState.getPlayerCount(); i++) { - IHand hand = gameState.getPlayer(i).getHand(); + IHand hand = gameState.getNthNextPlayer(i).getHand(); for (int j = 0; j < 7; j++) { hand.drop(gameState.getGameHeap().drawStone(), new Position(j, 0)); hand.drop(gameState.getGameHeap().drawStone(), new Position(j, 1)); @@ -81,8 +81,6 @@ public class RoundControl { if (clonedTable.isValid()) { gameState.setTable(clonedTable); - System.err.println(gameState.getActivePlayer().getName()); - System.err.println(gameState.getActivePlayer().getHand().getSize()); if (gameState.getActivePlayer().getHand().getSize() == 0) { win(); return; -- cgit v1.2.3