SteamWar/FightSystem
Archiviert
13
1

Hotfix countdown

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-11 10:31:18 +02:00
Ursprung 5879ca5e18
Commit a95800e815

Datei anzeigen

@ -1,6 +1,7 @@
package de.steamwar.fightsystem.utils; package de.steamwar.fightsystem.utils;
import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.Config;
import de.steamwar.fightsystem.FightSystem;
import de.steamwar.fightsystem.countdown.EnternCountdown; import de.steamwar.fightsystem.countdown.EnternCountdown;
import de.steamwar.fightsystem.fight.Fight; import de.steamwar.fightsystem.fight.Fight;
import de.steamwar.fightsystem.fight.FightPlayer; import de.steamwar.fightsystem.fight.FightPlayer;
@ -16,6 +17,10 @@ public class EnterHandler implements StateDependent {
private static final Set<FightState> enabled = EnumSet.of(FightState.RUNNING); private static final Set<FightState> enabled = EnumSet.of(FightState.RUNNING);
private static final Set<EnternCountdown> countdowns = new HashSet<>(); private static final Set<EnternCountdown> countdowns = new HashSet<>();
public EnterHandler(){
FightSystem.registerStateDependent(this);
}
@Override @Override
public Set<FightState> enabled() { public Set<FightState> enabled() {
return enabled; return enabled;