Enum GameRole
- All Implemented Interfaces:
Serializable, Comparable<GameRole>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<GameRole> 勢力バランス表記用Comparatorを得る。 「村共占霊狩公狂狼」の順で役職を一意に順序づける。役職名を返す。char一文字に短縮された役職名を得る。getTeam()各役職のチームを得る。XML用シンボルを取得する。static GameRolelookingAtRole(Matcher matcher) 与えられたマッチャ先頭が定義済みRole名に一致しないか調べる。static GameRoleReturns the enum constant of this type with the specified name.static GameRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INNOCENT
村人。 -
WOLF
人狼。 -
SEER
占い師。 -
SHAMAN
霊能者。 -
MADMAN
狂人。 -
HUNTER
狩人。 -
FRATER
共有者。 -
HAMSTER
ハムスター人間。
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
lookingAtRole
-
getPowerBalanceComparator
勢力バランス表記用Comparatorを得る。 「村共占霊狩公狂狼」の順で役職を一意に順序づける。- Returns:
- Comparator
-
getRoleName
-
getShortName
public char getShortName()一文字に短縮された役職名を得る。- Returns:
- 短縮された役職名
-
getXmlName
-
getTeam
-