Enum Class ContractSearchType
java.lang.Object
java.lang.Enum<ContractSearchType>
mekhq.campaign.mission.newContract.contractGeneration.ContractSearchType
- All Implemented Interfaces:
Serializable,Comparable<ContractSearchType>,Constable
The kind of campaign a contract is being generated for, which drives how employers, objectives, negotiators, and pay
are determined. Every campaign faction resolves to exactly one of these categories.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA government faction (any campaign faction that is neither mercenary nor pirate).A mercenary command, which receives a semi-random employer drawn from the contract search radius.A pirate band, which selects a victim faction rather than a conventional employer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContractSearchTypeReturns the enum constant of this class with the specified name.static ContractSearchType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MERCENARY
A mercenary command, which receives a semi-random employer drawn from the contract search radius. -
PIRATE
A pirate band, which selects a victim faction rather than a conventional employer. -
GOVERNMENT
A government faction (any campaign faction that is neither mercenary nor pirate).
-
-
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
-