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,8 +25,14 @@ 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