All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zerotoheroes.hsgameentities.enums.CardClass Maven / Gradle / Ivy

There is a newer version: 1.0.37
Show newest version
package com.zerotoheroes.hsgameentities.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CardClass {

	//@formatter:off
	INVALID(0),
    DEATHKNIGHT(1),
    DRUID(2),
    HUNTER(3),
    MAGE(4),
    PALADIN(5),
    PRIEST(6),
    ROGUE(7),
    SHAMAN(8),
    WARLOCK(9),
    WARRIOR(10),
    DREAM(11),
//    COUNT(12),

    // alias
    NEUTRAL(12);
	//@formatter:on

	private int intValue;

	public static int parseEnum(String tag) {
		try {
			int value = Integer.parseInt(tag);
			return value;
		}
		catch (Exception e) {
		}

		return CardClass.valueOf(tag).getIntValue();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy