added all Notifications for the model view communication

added all required notifications with their content and getter methods.
This commit is contained in:
Hanno Fleischer
2024-11-16 18:58:33 +01:00
parent 6b2d775534
commit 44b623f9fd
23 changed files with 556 additions and 13 deletions

View File

@@ -1,9 +1,23 @@
package pp.mdga.notification;
import pp.mdga.game.Color;
/**
* Notification that a card has been drawn
*/
public class InterruptNotification extends Notification {
InterruptNotification(Color color) {
private Color color;
/**
* @param color the color of the player who drew the card
*/
InterruptNotification(Color color) {
this.color = color;
}
/**
* @return the color of the player who drew the card
*/
public Color getColor() {
return color;
}
}