Enum Class ChaosObjectiveType

java.lang.Object
java.lang.Enum<ChaosObjectiveType>
mekhq.campaign.mission.contract.contractGeneration.ChaosObjectiveType
All Implemented Interfaces:
Serializable, Comparable<ChaosObjectiveType>, Constable

public enum ChaosObjectiveType extends Enum<ChaosObjectiveType>
  • Enum Constant Details

  • Method Details

    • values

      public static ChaosObjectiveType[] 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 ChaosObjectiveType 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
    • isCovertCandidate

      public boolean isCovertCandidate()
    • getMonthsLength

      public int getMonthsLength()
    • getProcurementTargetNumberModifier

      public int getProcurementTargetNumberModifier()
      The returned value is a modifier added to the target number of procurement checks, so a higher value makes parts harder to acquire, and a lower (negative) value makes them easier. In other words, higher is worse. The modifier is only applied when StratCon and "restrict parts by mission" are both enabled.
      Returns:
      the procurement modifier for the current contract type, where higher values mean worse availability
    • calculateLength

      public int calculateLength(boolean useVariableContractLengths)
      Calculates the length of the contract in months.

      If variable contract lengths are enabled, the length is calculated with randomization around the base contract type's standard duration. Otherwise, the constant length defined by the contract type is used.

      Parameters:
      useVariableContractLengths - whether to use variable length calculation
      Returns:
      the calculated contract length in months
    • getCamOpsObjectiveType

      public ContractObjectiveType getCamOpsObjectiveType()
    • getPayRateModifier

      public int getPayRateModifier()
    • getSupportModifier

      public int getSupportModifier()
    • getTransportModifier

      public int getTransportModifier()
    • getSalvageRightsModifier

      public int getSalvageRightsModifier()
    • getCommandRightsModifier

      public int getCommandRightsModifier()
    • getForceCommitmentModifier

      public int getForceCommitmentModifier()
    • isAttacker

      public boolean isAttacker()
    • getSpecialRules

      public List<ChaosObjectiveSpecialRules> getSpecialRules()
    • usesSpecialRule

      public boolean usesSpecialRule(ChaosObjectiveSpecialRules specialRule)