From 604ef91282ad234130b1d46569efd486ab6c5024 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 May 2011 22:01:02 +0200 Subject: Fix dealing stones for more than 2 rows git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@244 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockHand.java | 11 +++++++++++ mock/jrummikub/model/MockPlayer.java | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'mock/jrummikub/model') diff --git a/mock/jrummikub/model/MockHand.java b/mock/jrummikub/model/MockHand.java index d262c87..30bda51 100644 --- a/mock/jrummikub/model/MockHand.java +++ b/mock/jrummikub/model/MockHand.java @@ -65,4 +65,15 @@ public class MockHand implements IHand { return null; } } + + @Override + public int getRowCount() { + return 0; + } + + @Override + public int getFreeRowSpace(int row) { + // TODO Auto-generated method stub + return 0; + } } diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java index d9c4a43..214a4e0 100644 --- a/mock/jrummikub/model/MockPlayer.java +++ b/mock/jrummikub/model/MockPlayer.java @@ -7,7 +7,7 @@ import java.awt.Color; */ public class MockPlayer implements IPlayer { /** */ - public MockHand hand; + public Hand hand; /** */ public String name; /** */ @@ -20,7 +20,7 @@ public class MockPlayer implements IPlayer { * the player color */ public MockPlayer(String name, Color color) { - hand = new MockHand(); + hand = new Hand(); this.name = name; this.color = color; } -- cgit v1.2.3