chore: warning
This commit is contained in:
@@ -13,8 +13,7 @@ import java.util.function.Consumer;
|
|||||||
* and it contains their names and actions
|
* and it contains their names and actions
|
||||||
*/
|
*/
|
||||||
public enum Events {
|
public enum Events {
|
||||||
PEACEFUL_ROUND("Peaceful round. enjoy!", game -> {
|
PEACEFUL_ROUND("Peaceful round. enjoy!"),
|
||||||
}),
|
|
||||||
FLOOD("Flood", game -> {
|
FLOOD("Flood", game -> {
|
||||||
game.getStrings().print("eventFlood");
|
game.getStrings().print("eventFlood");
|
||||||
game.setBuildings(new ArrayList<>(
|
game.setBuildings(new ArrayList<>(
|
||||||
@@ -47,6 +46,11 @@ public enum Events {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
this.action = action;
|
this.action = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Events(String name) {
|
||||||
|
this.name = name;
|
||||||
|
action = null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns human-readable name
|
* Returns human-readable name
|
||||||
|
|||||||
Reference in New Issue
Block a user