added all Notifications for the model view communication
added all required notifications with their content and getter methods.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user