added finish text; edited Notifications
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
package pp.mdga.notification;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
/**
|
||||
* Notification that is sent when a player has diced.
|
||||
*/
|
||||
public class DicingNotification extends Notification {
|
||||
/**
|
||||
* The color of the player that diced.
|
||||
*/
|
||||
private final Color color;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param color The color of the player that diced.
|
||||
*/
|
||||
public DicingNotification(Color color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the color of the player that diced.
|
||||
*
|
||||
* @return The color of the player that diced.
|
||||
*/
|
||||
public Color getColor() {
|
||||
return color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package pp.mdga.notification;
|
||||
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
public class FinishNotification extends Notification{
|
||||
private Color colorFinished;
|
||||
|
||||
public FinishNotification(Color colorFinished){
|
||||
this.colorFinished = colorFinished;
|
||||
}
|
||||
|
||||
public Color getColorFinished() {
|
||||
return colorFinished;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user