tower-generator #6
@ -58,6 +58,7 @@ public class WorldConfig {
|
|||||||
public static final TowerGeneratorConfig TOWER_GENERATOR_CONFIG;
|
public static final TowerGeneratorConfig TOWER_GENERATOR_CONFIG;
|
||||||
|
|
||||||
public static final List<WinCondition> WINCONDITIONS = new ArrayList<>();
|
public static final List<WinCondition> WINCONDITIONS = new ArrayList<>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
WINCONDITIONS.add(new LastRemainingWincondition());
|
WINCONDITIONS.add(new LastRemainingWincondition());
|
||||||
WINCONDITIONS.add(new LastOutsideWincondition());
|
WINCONDITIONS.add(new LastOutsideWincondition());
|
||||||
|
@ -38,9 +38,13 @@ public abstract class Countdown extends GameStateToggleListener {
|
|||||||
super(enabledStates);
|
super(enabledStates);
|
||||||
}
|
}
|
||||||
|
|
||||||
int defaultTime() {return 0;}
|
int defaultTime() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
void timerEnd() {}
|
void timerEnd() {}
|
||||||
boolean timerShouldCancel() {return true;}
|
boolean timerShouldCancel() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
void run() {}
|
void run() {}
|
||||||
void timerStart() {}
|
void timerStart() {}
|
||||||
void timerReset() {}
|
void timerReset() {}
|
||||||
|
@ -32,7 +32,7 @@ public class EndCountdown extends Countdown {
|
|||||||
|
|
||||||
private final LobbyCountdown lobbyCountdown;
|
private final LobbyCountdown lobbyCountdown;
|
||||||
|
|
||||||
private static boolean RESETS = Objects.requireNonNull(Bukkit.getWorlds().get(0).getWorldFolder().list((dir, name) -> name.equals("backup"))).length > 0;
|
private static final boolean RESETS = Objects.requireNonNull(Bukkit.getWorlds().get(0).getWorldFolder().list((dir, name) -> name.equals("backup"))).length > 0;
|
||||||
|
|
||||||
public EndCountdown(LobbyCountdown lobbyCountdown) {
|
public EndCountdown(LobbyCountdown lobbyCountdown) {
|
||||||
super(EnumSet.of(GameStates.ENDING));
|
super(EnumSet.of(GameStates.ENDING));
|
||||||
|
@ -31,8 +31,8 @@ public class TowerGenerator {
|
|||||||
|
|
||||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
|
|||||||
private static final Random random = new Random();
|
private static final Random random = new Random();
|
||||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
Chaoscaot
hat
could be final could be final
|
|||||||
private final WorldConfig.TowerGeneratorConfig config;
|
private final WorldConfig.TowerGeneratorConfig config;
|
||||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
Chaoscaot
hat
Attribute sind im camelCase Attribute sind im camelCase
|
|||||||
private List<SchematicNode> allSchematics;
|
private final List<SchematicNode> allSchematics;
|
||||||
private Clipboard roof;
|
private final Clipboard roof;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private int height;
|
private int height;
|
||||||
|
@ -48,7 +48,7 @@ import java.util.*;
|
|||||||
public class IngameListener extends GameStateBukkitListener {
|
public class IngameListener extends GameStateBukkitListener {
|
||||||
|
|
||||||
private int time = 0;
|
private int time = 0;
|
||||||
private Map<Integer, List<Block>> blocksToMelt = new HashMap<>();
|
private final Map<Integer, List<Block>> blocksToMelt = new HashMap<>();
|
||||||
private BukkitRunnable runnable;
|
private BukkitRunnable runnable;
|
||||||
|
|
||||||
public IngameListener() {
|
public IngameListener() {
|
||||||
|
@ -34,6 +34,7 @@ public abstract class GameStateToggleListener extends GameStateListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public abstract void enable();
|
public abstract void enable();
|
||||||
|
|
||||||
public abstract void disable();
|
public abstract void disable();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Could be final,
Could be static