From d276b03c395e7c0e44740174168c0d98a8eaa06c Mon Sep 17 00:00:00 2001 From: Bennet Gerlach Date: Tue, 31 May 2011 03:45:32 +0200 Subject: AIUtil now needs game settings, both hand and player do not anymore git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@342 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockHand.java | 4 ++-- mock/jrummikub/model/MockPlayer.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mock/jrummikub') diff --git a/mock/jrummikub/model/MockHand.java b/mock/jrummikub/model/MockHand.java index 25e2edc..ab949d0 100644 --- a/mock/jrummikub/model/MockHand.java +++ b/mock/jrummikub/model/MockHand.java @@ -78,12 +78,12 @@ public class MockHand implements IHand { } @Override - public int getStonePoints() { + public int getStonePoints(GameSettings settings) { // TODO Auto-generated method stub return 0; } - public boolean isInitialMeldPossible() { + public boolean isInitialMeldPossible(GameSettings settings) { return false; } diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java index 7985a1f..9bd1036 100644 --- a/mock/jrummikub/model/MockPlayer.java +++ b/mock/jrummikub/model/MockPlayer.java @@ -13,12 +13,12 @@ public class MockPlayer implements IPlayer { /** * @param playerSettings - * the player settings + * the player settings * @param gameSettings - * the game settings + * the game settings */ public MockPlayer(PlayerSettings playerSettings, GameSettings gameSettings) { - hand = new Hand(gameSettings); + hand = new Hand(); this.playerSettings = playerSettings; laidOut = false; } -- cgit v1.2.3