summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-08 18:10:07 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-08 18:10:07 +0200
commit82c58a1eae3c818274db1b29c5d539f174060835 (patch)
tree1778a2b82c596bafd4877818c936a19f73e3c0cb /src/jrummikub/control
parent8ee379b1ab5341d257637f6761aae852fabb859c (diff)
downloadJRummikub-82c58a1eae3c818274db1b29c5d539f174060835.tar
JRummikub-82c58a1eae3c818274db1b29c5d539f174060835.zip
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
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/RoundControl.java4
1 files changed, 1 insertions, 3 deletions
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;