Enum Class WarRole

java.lang.Object
java.lang.Enum<WarRole>
net.chen.legacyLand.war.WarRole
All Implemented Interfaces:
Serializable, Comparable<WarRole>, Constable

public enum WarRole extends Enum<WarRole>
战争角色
  • Enum Constant Details

    • SOLDIER

      public static final WarRole SOLDIER
      战士 - 前线作战
    • LOGISTICS

      public static final WarRole LOGISTICS
      后勤兵 - 运送补给
    • SCOUT

      public static final WarRole SCOUT
      侦查员 - 建立前哨战
    • SUPPORT

      public static final WarRole SUPPORT
      支援部队
  • Method Details

    • values

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

      public static WarRole 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null