added all Notifications for the model view communication
added all required notifications with their content and getter methods.
This commit is contained in:
@@ -2,8 +2,26 @@
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
/**
|
||||
* Notification that a player is in the game.
|
||||
*/
|
||||
public class ResumeNotification extends Notification {
|
||||
ResumeNotification(Color color) {
|
||||
|
||||
private Color color;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param color the color of the player that is in the game.
|
||||
*/
|
||||
ResumeNotification(Color color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the color of the player that is in the game.
|
||||
* @return the color of the player that is in the game.
|
||||
*/
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user