GameState fertig und getestet
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@92 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
cbd8737a6a
commit
2f4f2f79ae
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
package jrummikub.model;
|
package jrummikub.model;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/** Class managing the overall and momentary GameState */
|
/** Class managing the overall and momentary GameState */
|
||||||
|
@ -9,14 +10,17 @@ public class GameState {
|
||||||
private int activePlayer;
|
private int activePlayer;
|
||||||
private StoneHeap gameHeap;
|
private StoneHeap gameHeap;
|
||||||
|
|
||||||
|
public GameState() {
|
||||||
|
this.players=new ArrayList<Player>();
|
||||||
|
}
|
||||||
|
|
||||||
/** Changes the activePlayer to the next {@link Player} in the list */
|
/** Changes the activePlayer to the next {@link Player} in the list */
|
||||||
public void nextPlayer() {
|
public void nextPlayer() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Player activePlayer() {
|
public Player activePlayer() {
|
||||||
// TODO implement this
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue