diff options
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r-- | src/jrummikub/model/IPlayer.java | 7 | ||||
-rw-r--r-- | src/jrummikub/model/Player.java | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/jrummikub/model/IPlayer.java b/src/jrummikub/model/IPlayer.java index 0545352..03b5da4 100644 --- a/src/jrummikub/model/IPlayer.java +++ b/src/jrummikub/model/IPlayer.java @@ -13,6 +13,13 @@ public interface IPlayer { public IHand getHand(); /** + * Set the current hand of the player + * + * @param hand the new hand + */ + public void setHand(IHand hand); + + /** * Has the player laid out yet? * * @return if the player has laid out diff --git a/src/jrummikub/model/Player.java b/src/jrummikub/model/Player.java index 38d2587..6f7885b 100644 --- a/src/jrummikub/model/Player.java +++ b/src/jrummikub/model/Player.java @@ -25,6 +25,11 @@ public class Player implements IPlayer { } @Override + public void setHand(IHand hand) { + this.hand = hand; + } + + @Override public boolean getLaidOut() { return laidOut; } |