diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-16 22:01:02 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-16 22:01:02 +0200 |
commit | 604ef91282ad234130b1d46569efd486ab6c5024 (patch) | |
tree | 53fab92b75551c8acc8979d77ffa8351f788ae90 /mock | |
parent | 57227570fe6bf9eb5ecf17c32a1db1a7bbed85e3 (diff) | |
download | JRummikub-604ef91282ad234130b1d46569efd486ab6c5024.tar JRummikub-604ef91282ad234130b1d46569efd486ab6c5024.zip |
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
Diffstat (limited to 'mock')
-rw-r--r-- | mock/jrummikub/model/MockHand.java | 11 | ||||
-rw-r--r-- | mock/jrummikub/model/MockPlayer.java | 4 |
2 files changed, 13 insertions, 2 deletions
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; } |