diff options
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r-- | src/jrummikub/model/IPlayer.java | 10 | ||||
-rw-r--r-- | src/jrummikub/model/Player.java | 22 |
2 files changed, 31 insertions, 1 deletions
diff --git a/src/jrummikub/model/IPlayer.java b/src/jrummikub/model/IPlayer.java index 9df3741..a72b002 100644 --- a/src/jrummikub/model/IPlayer.java +++ b/src/jrummikub/model/IPlayer.java @@ -43,5 +43,13 @@ public interface IPlayer extends Serializable { * the player laid out * */ - void setLaidOut(boolean laidOut); + public void setLaidOut(boolean laidOut); + + public boolean wasLastTurnInvalid(); + + public void setLastTurnInvalid(boolean value); + + public int getLastTurnStoneCount(); + + public void setLastTurnStoneCount(int value); }
\ No newline at end of file diff --git a/src/jrummikub/model/Player.java b/src/jrummikub/model/Player.java index 00469c5..eccac15 100644 --- a/src/jrummikub/model/Player.java +++ b/src/jrummikub/model/Player.java @@ -7,6 +7,8 @@ public class Player implements IPlayer { private PlayerSettings settings; private IHand hand; private boolean laidOut; + private boolean lastTurnInvalid; + private int lastTurnStoneCount; /** * Create a new player with a given name and color @@ -45,4 +47,24 @@ public class Player implements IPlayer { public PlayerSettings getPlayerSettings() { return settings; } + + @Override + public boolean wasLastTurnInvalid() { + return lastTurnInvalid; + } + + @Override + public void setLastTurnInvalid(boolean value) { + lastTurnInvalid = value; + } + + @Override + public int getLastTurnStoneCount() { + return lastTurnStoneCount; + } + + @Override + public void setLastTurnStoneCount(int value) { + lastTurnStoneCount = value; + } } |