trigger timeoutPopup

This commit is contained in:
Johannes Schmelz 2024-11-29 17:42:10 +01:00
parent 86ece3b70d
commit 44d64c4e0f
2 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -280,7 +280,7 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker {
*/
@Override
public void received(TimeOutWarning msg) {
notifyListeners(new PopUpEvent("timeout"));
}
/**