started adding notifications

This commit is contained in:
Cedric Beck
2024-11-26 20:53:29 +01:00
parent c204a3a4cb
commit 6528e5c2b6
11 changed files with 174 additions and 42 deletions

View File

@@ -2,6 +2,9 @@
import pp.mdga.game.Color;
import java.util.List;
import java.util.UUID;
/**
* Notification that a player is in the game.
*/
@@ -9,15 +12,17 @@ public class PlayerInGameNotification extends Notification {
private Color color;
private String name;
private List<UUID> piecesList;
/**
* Constructor.
* @param color the color of the player that is in the game.
* @param name the name of the player that is in the game.
*/
PlayerInGameNotification(Color color, String name) {
public PlayerInGameNotification(Color color, List<UUID> piecesList, String name) {
this.color = color;
this.name = name;
this.piecesList = piecesList;
}
/**
@@ -35,4 +40,8 @@ public Color getColor() {
public String getName() {
return name;
}
public List<UUID> getPiecesList() {
return piecesList;
}
}