diff options
-rw-r--r-- | mock/jrummikub/model/MockPlayer.java | 8 | ||||
-rw-r--r-- | src/jrummikub/model/IPlayer.java | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java index 214a4e0..cb9adaa 100644 --- a/mock/jrummikub/model/MockPlayer.java +++ b/mock/jrummikub/model/MockPlayer.java @@ -12,6 +12,8 @@ public class MockPlayer implements IPlayer { public String name; /** */ public Color color; + /** */ + public boolean cameOut; /** * @param name @@ -23,9 +25,15 @@ public class MockPlayer implements IPlayer { hand = new Hand(); this.name = name; this.color = color; + this.cameOut=false; } @Override + public boolean getCameOut() { + return cameOut; + } + + @Override public IHand getHand() { return hand; } diff --git a/src/jrummikub/model/IPlayer.java b/src/jrummikub/model/IPlayer.java index 3eca44b..1a51e65 100644 --- a/src/jrummikub/model/IPlayer.java +++ b/src/jrummikub/model/IPlayer.java @@ -28,4 +28,6 @@ public interface IPlayer { */ public String getName(); + boolean getCameOut(); + }
\ No newline at end of file |