Enum Class ChaosObjectiveType

java.lang.Object
java.lang.Enum<ChaosObjectiveType>
mekhq.campaign.mission.newContract.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
    • getMonthsLength

      public int getMonthsLength()
    • 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)