added further notification implemenation
This commit is contained in:
@@ -15,7 +15,7 @@ public class DrawCardNotification extends Notification {
|
||||
* @param color the color of the player who drew the card
|
||||
* @param card the card that was drawn
|
||||
*/
|
||||
DrawCardNotification(Color color, BonusCard card) {
|
||||
DrawCardNotification(Color color) {
|
||||
this.color = color;
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
@@ -3,24 +3,32 @@
|
||||
import pp.mdga.game.Color;
|
||||
|
||||
/**
|
||||
* Notification that a die has been rolled.
|
||||
* Notification that a dice has been rolled.
|
||||
*/
|
||||
public class RollDiceNotification extends Notification{
|
||||
|
||||
private Color color;
|
||||
private int eyes;
|
||||
private int moveNumber;
|
||||
private boolean turbo;
|
||||
private int multiplier;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param color the color of the player that rolled the die.
|
||||
* @param eyes the number of eyes that were rolled.
|
||||
* @param moveNumber the number of the move that was made.
|
||||
*/
|
||||
RollDiceNotification(Color color, int eyes, int moveNumber) {
|
||||
RollDiceNotification(Color color, int eyes) {
|
||||
this.color = color;
|
||||
this.eyes = eyes;
|
||||
this.moveNumber = moveNumber;
|
||||
this.multiplier = -1;
|
||||
this.turbo = false;
|
||||
}
|
||||
|
||||
RollDiceNotification(Color color, int eyes, boolean turbo, int multiplier) {
|
||||
this.color = color;
|
||||
this.eyes = eyes;
|
||||
this.multiplier = multiplier;
|
||||
this.turbo = turbo;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,11 +47,11 @@ public int getEyes() {
|
||||
return eyes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of the move that was made.
|
||||
* @return the number of the move that was made.
|
||||
*/
|
||||
public int getMoveNumber() {
|
||||
return moveNumber;
|
||||
public int getMultiplier() {
|
||||
return multiplier;
|
||||
}
|
||||
|
||||
public boolean isTurbo() {
|
||||
return turbo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package pp.mdga.notification;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Notification for selecting pieces for swapcard.
|
||||
*/
|
||||
public class SelectableShieldNotification extends Notification{
|
||||
|
||||
/**
|
||||
* List of UUIDs representing the player's own pieces available for selection.
|
||||
*/
|
||||
private final List<UUID> ownPieces;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a notification for selecting pieces for swapcard.
|
||||
*
|
||||
* @param ownPieces the list of the player's own pieces
|
||||
*/
|
||||
public SelectableShieldNotification(List<UUID> ownPieces) {
|
||||
this.ownPieces = ownPieces;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the list of the player's own pieces available for selection.
|
||||
*
|
||||
* @return a list of UUIDs representing the player's own pieces
|
||||
*/
|
||||
public List<UUID> getOwnPieces() {
|
||||
return ownPieces;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package pp.mdga.notification;
|
||||
|
||||
public class TurboActiveNotification extends Notification{
|
||||
}
|
||||
Reference in New Issue
Block a user