mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 00:06:16 +01:00
trigger money sounds
This commit is contained in:
parent
1369de865a
commit
aae003823d
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user