Package mekhq.campaign.mission.enums
Enum Class ScenarioStatus
- All Implemented Interfaces:
Serializable
,Comparable<ScenarioStatus>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
isDefeat()
boolean
isDraw()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static ScenarioStatus
parseFromString
(String text) toString()
static ScenarioStatus
Returns the enum constant of this class with the specified name.static ScenarioStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CURRENT
-
DECISIVE_VICTORY
-
VICTORY
-
MARGINAL_VICTORY
-
PYRRHIC_VICTORY
-
DRAW
-
MARGINAL_DEFEAT
-
DEFEAT
-
DECISIVE_DEFEAT
-
REFUSED_ENGAGEMENT
-
-
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
-
getToolTipText
-
isCurrent
public boolean isCurrent() -
isDecisiveVictory
public boolean isDecisiveVictory() -
isVictory
public boolean isVictory() -
isMarginalVictory
public boolean isMarginalVictory() -
isPyrrhicVictory
public boolean isPyrrhicVictory() -
isDraw
public boolean isDraw() -
isMarginalDefeat
public boolean isMarginalDefeat() -
isDefeat
public boolean isDefeat() -
isDecisiveDefeat
public boolean isDecisiveDefeat() -
isRefusedEngagement
public boolean isRefusedEngagement() -
isOverallVictory
public boolean isOverallVictory() -
isOverallDefeat
public boolean isOverallDefeat() -
parseFromString
-
toString
- Overrides:
toString
in classEnum<ScenarioStatus>
-