Newer
Older
SproutServerMicro / src / main / java / org / ntlab / SproutServer / battles / Role.java
s-bekki on 30 Nov 2017 340 bytes initial commit
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;
	}
}