summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/GameState.java
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-24 01:51:54 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-24 01:51:54 +0200
commit92d110995488380778bd378f4297032a325dc385 (patch)
tree38bc26c6228a588b160bc0b053768044791dcaa4 /src/jrummikub/model/GameState.java
parentd9a0b0e37dbdde6d60fa4ee41c2a100547e7824b (diff)
downloadJRummikub-92d110995488380778bd378f4297032a325dc385.tar
JRummikub-92d110995488380778bd378f4297032a325dc385.zip
Select a random player for the first round
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@263 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/GameState.java')
-rw-r--r--src/jrummikub/model/GameState.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jrummikub/model/GameState.java b/src/jrummikub/model/GameState.java
new file mode 100644
index 0000000..4bb55bc
--- /dev/null
+++ b/src/jrummikub/model/GameState.java
@@ -0,0 +1,24 @@
+package jrummikub.model;
+
+/**
+ * Class that stores information for a game of multiple rounds
+ */
+public class GameState {
+ private int firstRoundFirstPlayer;
+
+ /**
+ * Gets the number of the first player of the first round
+ * @return the number of the first player of the first round
+ */
+ public int getFirstRoundFirstPlayer() {
+ return firstRoundFirstPlayer;
+ }
+
+ /**
+ * Sets the number of the first player of the first round
+ * @param firstRoundFirstPlayer the number of the first player of the first round
+ */
+ public void setFirstRoundFirstPlayer(int firstRoundFirstPlayer) {
+ this.firstRoundFirstPlayer = firstRoundFirstPlayer;
+ }
+}