Package jp.sourceforge.jindolf.corelib
Enum GameRole
- All Implemented Interfaces:
Serializable
,Comparable<GameRole>
,java.lang.constant.Constable
役職。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<GameRole>
勢力バランス表記用Comparatorを得る。 「村共占霊狩公狂狼」の順で役職を一意に順序づける。役職名を返す。char
一文字に短縮された役職名を得る。getTeam()
各役職のチームを得る。XML用シンボルを取得する。static GameRole
lookingAtRole
(Matcher matcher) 与えられたマッチャ先頭が定義済みRole名に一致しないか調べる。static GameRole
Returns 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
与えられたマッチャ先頭が定義済みRole名に一致しないか調べる。- Parameters:
matcher
- マッチャ- Returns:
- 一致した役職。どれにも一致しなければnull。
-
getPowerBalanceComparator
勢力バランス表記用Comparatorを得る。 「村共占霊狩公狂狼」の順で役職を一意に順序づける。- Returns:
- Comparator
-
getRoleName
役職名を返す。- Returns:
- 役職名
-
getShortName
public char getShortName()一文字に短縮された役職名を得る。- Returns:
- 短縮された役職名
-
getXmlName
XML用シンボルを取得する。- Returns:
- XML用シンボル
-
getTeam
各役職のチームを得る。- Returns:
- チーム
-