chore: warning

This commit is contained in:
2025-05-30 16:24:23 +02:00
parent b5c6523b45
commit 26fadacd0b

View File

@@ -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<>(
@@ -48,6 +47,11 @@ public enum Events {
this.action = action; this.action = action;
} }
Events(String name) {
this.name = name;
action = null;
}
/** /**
* Returns human-readable name * Returns human-readable name
* *