change HashMap to EnumMap

This commit is contained in:
Ingmar Goudt 2018-12-29 10:30:40 +01:00
parent cc2871a356
commit 799fe34b02
2 changed files with 15 additions and 15 deletions

View file

@ -181,7 +181,7 @@ public abstract class PlayerImpl implements Player, Serializable {
/**
* During some steps we can't play anything
*/
protected final Map<PhaseStep, Step.StepPart> silentPhaseSteps = new HashMap<PhaseStep, Step.StepPart>() {
protected final Map<PhaseStep, Step.StepPart> silentPhaseSteps = new EnumMap<PhaseStep, Step.StepPart>(PhaseStep.class) {
{
put(PhaseStep.DECLARE_ATTACKERS, Step.StepPart.PRE);
}