Add infoNotification
This commit is contained in:
@@ -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; }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user