Enum Class FlagWarStatus
- All Implemented Interfaces:
Serializable, Comparable<FlagWarStatus>, Constable
FlagWar 状态枚举
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription进行中攻击方胜利(计时器完成)已取消防守方胜利(旗帜被破坏) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnded()检查是否已结束static FlagWarStatusReturns the enum constant of this class with the specified name.static FlagWarStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
进行中 -
ATTACKER_VICTORY
攻击方胜利(计时器完成) -
DEFENDER_VICTORY
防守方胜利(旗帜被破坏) -
CANCELLED
已取消
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isEnded
public boolean isEnded()检查是否已结束
-