Adjust RollDiceNotification

This commit is contained in:
Felix Koppe
2024-12-02 16:34:55 +01:00
parent 92d2e74748
commit 2118c72891

View File

@@ -11,17 +11,19 @@ public class RollDiceNotification extends Notification{
private int eyes;
private boolean turbo;
private int multiplier;
private boolean isRanking;
/**
* Constructor.
* @param color the color of the player that rolled the die.
* @param eyes the number of eyes that were rolled.
*/
public RollDiceNotification(Color color, int eyes) {
public RollDiceNotification(Color color, int eyes, boolean isRanking) {
this.color = color;
this.eyes = eyes;
this.turbo = false;
this.multiplier = -1;
this.isRanking = isRanking;
}
public RollDiceNotification(Color color, int eyes, boolean turbo, int multiplier) {
@@ -29,6 +31,7 @@ public RollDiceNotification(Color color, int eyes, boolean turbo, int multiplier
this.eyes = eyes;
this.turbo = turbo;
this.multiplier = multiplier;
this.isRanking = false;
}
/**
@@ -54,4 +57,6 @@ public int getMultiplier() {
public boolean isTurbo() {
return turbo;
}
public boolean isRanking() { return isRanking; }
}