summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-03 19:54:46 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-03 19:54:46 +0200
commit2f4f2f79aed8752bd2164d0677e042716843304a (patch)
tree2407a9ef0324d3238ff061c86b5bb6e3b1ed5b09 /src
parentcbd8737a6aa1ccf54e7ee2f85fc5fd8834d1d4ab (diff)
downloadJRummikub-2f4f2f79aed8752bd2164d0677e042716843304a.tar
JRummikub-2f4f2f79aed8752bd2164d0677e042716843304a.zip
GameState fertig und getestet
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@92 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/model/GameState.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jrummikub/model/GameState.java b/src/jrummikub/model/GameState.java
index 83aeff6..17b3ed0 100644
--- a/src/jrummikub/model/GameState.java
+++ b/src/jrummikub/model/GameState.java
@@ -1,5 +1,6 @@
package jrummikub.model;
+import java.util.ArrayList;
import java.util.List;
/** Class managing the overall and momentary GameState */
@@ -9,14 +10,17 @@ public class GameState {
private int activePlayer;
private StoneHeap gameHeap;
+ public GameState() {
+ this.players=new ArrayList<Player>();
+ }
+
/** Changes the activePlayer to the next {@link Player} in the list */
public void nextPlayer() {
}
public Player activePlayer() {
- // TODO implement this
- return null;
+
}
}