added 4 more Notifications for Model -> View interaction

This commit is contained in:
Hanno Fleischer
2024-11-17 10:39:36 +01:00
parent 0845aa80f9
commit 020aa92cab
4 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package pp.mdga.notification;
import java.util.UUID;
/**
* Notification that a piece has no shield.
*/
public class NoShieldNotification extends Notification{
private UUID pieceId;
/**
* Constructor.
* @param pieceId the id of the piece that has no shield.
*/
public NoShieldNotification(UUID pieceId) {
this.pieceId = pieceId;
}
/**
* Get the id of the piece that has no shield.
* @return the id of the piece that has no shield.
*/
public UUID getPieceId() {
return pieceId;
}
}