Enum GameRole

java.lang.Object
java.lang.Enum<GameRole>
jp.sourceforge.jindolf.corelib.GameRole
All Implemented Interfaces:
Serializable, Comparable<GameRole>, java.lang.constant.Constable

public enum GameRole extends Enum<GameRole>
役職。
  • Enum Constant Details

    • INNOCENT

      public static final GameRole INNOCENT
      村人。
    • WOLF

      public static final GameRole WOLF
      人狼。
    • SEER

      public static final GameRole SEER
      占い師。
    • SHAMAN

      public static final GameRole SHAMAN
      霊能者。
    • MADMAN

      public static final GameRole MADMAN
      狂人。
    • HUNTER

      public static final GameRole HUNTER
      狩人。
    • FRATER

      public static final GameRole FRATER
      共有者。
    • HAMSTER

      public static final GameRole HAMSTER
      ハムスター人間。
  • Method Details

    • values

      public static GameRole[] 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

      public static GameRole valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • lookingAtRole

      public static GameRole lookingAtRole(Matcher matcher)
      与えられたマッチャ先頭が定義済みRole名に一致しないか調べる。
      Parameters:
      matcher - マッチャ
      Returns:
      一致した役職。どれにも一致しなければnull。
    • getPowerBalanceComparator

      public static Comparator<GameRole> getPowerBalanceComparator()
      勢力バランス表記用Comparatorを得る。 「村共占霊狩公狂狼」の順で役職を一意に順序づける。
      Returns:
      Comparator
    • getRoleName

      public String getRoleName()
      役職名を返す。
      Returns:
      役職名
    • getShortName

      public char getShortName()
      一文字に短縮された役職名を得る。
      Returns:
      短縮された役職名
    • getXmlName

      public String getXmlName()
      XML用シンボルを取得する。
      Returns:
      XML用シンボル
    • getTeam

      public Team getTeam()
      各役職のチームを得る。
      Returns:
      チーム