diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java index f18c0ff..6d4b485 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java @@ -8,6 +8,7 @@ import pp.monopoly.client.gui.popups.EventCardPopup; import pp.monopoly.client.gui.popups.FoodFieldCard; import pp.monopoly.client.gui.popups.GateFieldCard; import pp.monopoly.client.gui.popups.LooserPopUp; +import pp.monopoly.client.gui.popups.TimeOut; import pp.monopoly.client.gui.popups.WinnerPopUp; import pp.monopoly.game.server.Player; import pp.monopoly.model.fields.BuildingProperty; @@ -152,6 +153,8 @@ public class TestWorld implements GameEventListener{ new WinnerPopUp(app).open(); } else if(event.msg().equals("Looser")) { new LooserPopUp(app).open(); + } else if(event.msg().equals("timeout")) { + new TimeOut(app).open(); } } diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java index 3a275bf..a7f48bc 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java @@ -280,7 +280,7 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker { */ @Override public void received(TimeOutWarning msg) { - + notifyListeners(new PopUpEvent("timeout")); } /**