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,6 +1,6 @@
|
|||
package jrummikub.control;
|
||||
|
||||
import jrummikub.model.GameState;
|
||||
import jrummikub.model.RoundState;
|
||||
import jrummikub.util.IListener;
|
||||
import jrummikub.view.IView;
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class GameControl {
|
|||
return;
|
||||
}
|
||||
|
||||
GameState gameState = new GameState();
|
||||
RoundState gameState = new RoundState();
|
||||
|
||||
roundControl = new RoundControl(gameState, view);
|
||||
roundControl.getEndRoundEvent().add(new IListener() {
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import jrummikub.model.Hand;
|
||||
import jrummikub.model.IGameState;
|
||||
import jrummikub.model.IRoundState;
|
||||
import jrummikub.model.IHand;
|
||||
import jrummikub.model.ITable;
|
||||
import jrummikub.model.Position;
|
||||
|
@ -23,7 +23,7 @@ import jrummikub.view.IView;
|
|||
* Controller that manages a single round of rummikub
|
||||
*/
|
||||
public class RoundControl {
|
||||
private IGameState gameState;
|
||||
private IRoundState gameState;
|
||||
private IView view;
|
||||
private ITable clonedTable;
|
||||
private Event endRoundEvent = new Event();
|
||||
|
@ -37,7 +37,7 @@ public class RoundControl {
|
|||
* @param view
|
||||
* view used for user interaction
|
||||
*/
|
||||
public RoundControl(IGameState gameState, IView view) {
|
||||
public RoundControl(IRoundState gameState, IView view) {
|
||||
this.gameState = gameState;
|
||||
this.view = view;
|
||||
}
|
||||
|
|
Reference in a new issue