From 17a1d3fbbb8caea5e11d319cf1d1138f003bce6c Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sun, 1 Dec 2024 21:55:06 +0100 Subject: [PATCH] fixed rent --- .../src/main/java/pp/monopoly/client/gui/TestWorld.java | 5 +++++ 1 file changed, 5 insertions(+) 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 8e2ef9c..2dffab0 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 @@ -20,10 +20,12 @@ import pp.monopoly.client.gui.popups.GateFieldCard; import pp.monopoly.client.gui.popups.Gulag; import pp.monopoly.client.gui.popups.LooserPopUp; import pp.monopoly.client.gui.popups.NoMoneyWarning; +import pp.monopoly.client.gui.popups.Rent; import pp.monopoly.client.gui.popups.TimeOut; import pp.monopoly.client.gui.popups.WinnerPopUp; import pp.monopoly.game.server.Player; import pp.monopoly.game.server.PlayerHandler; +import pp.monopoly.message.server.NotificationMessage; import pp.monopoly.model.fields.BuildingProperty; import pp.monopoly.model.fields.FoodField; import pp.monopoly.model.fields.GateField; @@ -376,7 +378,10 @@ public class TestWorld implements GameEventListener { new Gulag(app).open(); } else if (event.msg().equals("NoMoneyWarning")) { new NoMoneyWarning(app).open(); + } else if(event.msg().equals("rent")) { + new Rent(app, ( (NotificationMessage) event.message()).getRentOwner(), ( (NotificationMessage) event.message()).getRentAmount() ).open(); } + } @Override