GameState ist jetzt RoundState
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@249 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
d0a7014577
commit
b3c903a2ad
7 changed files with 19 additions and 19 deletions
|
@ -1,9 +1,9 @@
|
|||
package jrummikub.model;
|
||||
|
||||
/**
|
||||
* Interface for {@link GameState} model
|
||||
* Interface for {@link RoundState} model
|
||||
*/
|
||||
public interface IGameState {
|
||||
public interface IRoundState {
|
||||
|
||||
/**
|
||||
* Get the current {@link Table}
|
|
@ -5,7 +5,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
/** Class managing the overall and momentary GameState */
|
||||
public class GameState implements IGameState {
|
||||
public class RoundState implements IRoundState {
|
||||
private ITable table;
|
||||
private List<Player> players;
|
||||
private int activePlayer;
|
||||
|
@ -14,7 +14,7 @@ public class GameState implements IGameState {
|
|||
/**
|
||||
* Create a new GameState with an empty table and (currently) 4 new players.
|
||||
*/
|
||||
public GameState() {
|
||||
public RoundState() {
|
||||
table = new Table();
|
||||
players = new ArrayList<Player>();
|
||||
players.add(new Player("Ida", Color.RED));
|
Reference in a new issue