package org.ntlab.SproutServer.battles; /** * 職業に関するクラス * @author matsumoto_k */ public enum Role { Gunman(0), Witch(1); private int id; private Role(int id) { this.id = id; } public static Role getRole(int id) { for (Role role : values()) { if (id == role.id) return role; } return null; } }