From 8a3e4c3e26cba022dfaf06f8c7cd31b33b0889e9 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 20 Jun 2011 03:19:02 +0200 Subject: Finished side panel info git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@501 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/IPlayer.java | 10 +++++++++- src/jrummikub/model/Player.java | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) (limited to 'src/jrummikub/model') 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; + } } -- cgit v1.2.3