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 7507caf..da18a9f 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 @@ -344,15 +344,16 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker { public void received(NotificationMessage msg) { if (msg.getKeyWord().equals("rent")) { notifyListeners(new PopUpEvent("rent", msg)); + playSound(Sound.MONEY_LOST); } else if (msg.getKeyWord().equals("jailpay")) { + playSound(Sound.MONEY_LOST); notifyListeners(new PopUpEvent(msg.getKeyWord(), msg)); } else if(msg.getKeyWord().equals("NoMoneyWarning")) { notifyListeners(new PopUpEvent("NoMoneyWarning", msg)); - } else if (msg.getKeyWord().equals("jailpay")) { - notifyListeners(new PopUpEvent("jailpay", msg)); } else if (msg.getKeyWord().equals("jailtryagain")) { notifyListeners(new PopUpEvent("jailtryagain", msg)); } else if(msg.getKeyWord().equals("ReceivedRent")) { + playSound(Sound.MONEY_COLLECTED); notifyListeners(new PopUpEvent("ReceivedRent", msg)); } }