Add infoNotification

This commit is contained in:
Felix Koppe
2024-12-02 21:12:43 +01:00
parent 1918aa80ff
commit 8d39d61c71

View File

@@ -0,0 +1,33 @@
package pp.mdga.notification;
import pp.mdga.game.BonusCard;
/**
* Notification that is to give information to the player.
*/
public class InfoNotification extends Notification{
private final String message;
private boolean isError = false;
/**
* Constructor.
*/
public InfoNotification(String info) {
this.message = info;
}
/**
* Constructor.
*/
public InfoNotification(String info, boolean isError) {
this.message = info;
this.isError = isError;
}
public String getMessage() {
return message;
}
public boolean isError() { return isError; }
}