Merge pull request 'Fix EnterHandler' (#307) from EnterHandler into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #307 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
c9aab07344
@ -27,11 +27,10 @@ import de.steamwar.fightsystem.fight.FightTeam;
|
|||||||
import de.steamwar.fightsystem.states.FightState;
|
import de.steamwar.fightsystem.states.FightState;
|
||||||
import de.steamwar.fightsystem.states.IStateDependent;
|
import de.steamwar.fightsystem.states.IStateDependent;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class EnterHandler implements IStateDependent {
|
public class EnterHandler implements IStateDependent {
|
||||||
private static final Set<FightState> enabled = EnumSet.of(FightState.PRE_RUNNING, FightState.RUNNING);
|
private static final Set<FightState> enabled = FightState.Running;
|
||||||
|
|
||||||
public EnterHandler(){
|
public EnterHandler(){
|
||||||
FightState.registerStateDependent(this);
|
FightState.registerStateDependent(this);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren