com.zerotoheroes.hsgameentities.enums.Mulligan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hs-game-entities Show documentation
Show all versions of hs-game-entities Show documentation
POJOs representing a Hearthstone game entity and game constants
package com.zerotoheroes.hsgameentities.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum Mulligan {
//@formatter:off
INVALID(0),
INPUT(1),
DEALING(2),
WAITING(3),
DONE(4);
//@formatter:on
private int intValue;
public static int parseEnum(String tag) {
try {
int value = Integer.parseInt(tag);
return value;
}
catch (Exception e) {
}
return Mulligan.valueOf(tag).getIntValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy