summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-20 03:19:02 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-20 03:19:02 +0200
commit8a3e4c3e26cba022dfaf06f8c7cd31b33b0889e9 (patch)
tree3b32ee8a52f84138a05a2d3eef74cec1a3c15a2d /src/jrummikub/model
parent4df5c0e665991dd19a2f25ee513c3ff85a672c55 (diff)
downloadJRummikub-8a3e4c3e26cba022dfaf06f8c7cd31b33b0889e9.tar
JRummikub-8a3e4c3e26cba022dfaf06f8c7cd31b33b0889e9.zip
Finished side panel info
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@501 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/IPlayer.java10
-rw-r--r--src/jrummikub/model/Player.java22
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;
+ }
}