パッケージ org.aiwolf.common.data

Enum Class Role

java.lang.Object
java.lang.Enum<Role>
org.aiwolf.common.data.Role
すべての実装されたインタフェース:
Serializable, Comparable<Role>, Constable

public enum Role extends Enum<Role>
プレイヤーの役職の列挙です。
Roles of Player.
作成者:
tori and otsuki
  • 列挙型定数の詳細

    • BODYGUARD

      public static final Role BODYGUARD
      狩人を表します。
      The role Bodyguard.
    • FREEMASON

      public static final Role FREEMASON
      共有者を表します。
      The role Freemason.
    • MEDIUM

      public static final Role MEDIUM
      霊媒師です。
      The role Medium.
    • POSSESSED

      public static final Role POSSESSED
      狂人です。
      The role Possessed.
    • SEER

      public static final Role SEER
      占い師です。
      The role Seer.
    • VILLAGER

      public static final Role VILLAGER
      村人です。
      The role Villager.
    • WEREWOLF

      public static final Role WEREWOLF
      人狼です。
      The role WereWolf.
    • FOX

      public static final Role FOX
      妖狐です。
      The role FOX.
    • ANY

      public static final Role ANY
      役職不定
      An arbitrary role.
  • メソッドの詳細

    • values

      public static Role[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      戻り値:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Role valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      パラメータ:
      name - 返される列挙型定数の名前。
      戻り値:
      指定した名前の列挙型定数
      例外:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 引数がnullの場合
    • getTeam

      public Team getTeam()
      役職の属している陣営を返します。
      戻り値:
      役職の属している陣営
      Team type
    • getSpecies

      public Species getSpecies()
      役職の属している種族を返します。
      戻り値:
      役職の属している種族
      Species