added all Notifications for the model view communication

added all required notifications with their content and getter methods.
This commit is contained in:
Hanno Fleischer
2024-11-16 18:58:33 +01:00
parent 6b2d775534
commit 44b623f9fd
23 changed files with 556 additions and 13 deletions

View File

@@ -4,8 +4,34 @@
import java.util.UUID;
/**
* Notification that a piece is in the game
*/
public class PieceInGameNotification extends Notification{
PieceInGameNotification(Color color, UUID id) {
private Color color;
private UUID id;
/**
* Constructor
* @param color the color of the piece
* @param id the id of the piece
*/
PieceInGameNotification(Color color, UUID id) {
this.color = color;
this.id = id;
}
/**
* @return the color of the piece
*/
public Color getColor() {
return null;
}
/**
* @return the id of the piece
*/
public UUID getId() {
return null;
}
}