Class BatchallFactions

java.lang.Object
mekhq.campaign.universe.factionStanding.BatchallFactions

public class BatchallFactions extends Object
Provides utility methods for working with clan factions within the Fame and Infamy module: determining whether they engage in batchalling, retrieving greetings and version strings for factions based on various conditions, such as the faction code, infamy level, and current year.

The class is stateless and all methods are static, so it doesn't need to be instantiated. Therefore, all of its methods can be called directly on the class.

  • Field Details

    • BATCHALL_FACTIONS

      public static final List<String> BATCHALL_FACTIONS
  • Constructor Details

    • BatchallFactions

      public BatchallFactions()
  • Method Details

    • usesBatchalls

      public static boolean usesBatchalls(String factionCode)
      Determines whether a given faction engages in batchalling.
      Parameters:
      factionCode - The faction code to check eligibility for. Must be a non-null String.
      Returns:
      true if the faction code engages in batchalling, false otherwise.
    • getGreeting

      public static String getGreeting(Campaign campaign, String factionCode)
      Retrieves the greeting for faction based on infamy.
      Parameters:
      campaign - The campaign for which to retrieve the greeting.
      factionCode - The faction code for which to retrieve the greeting.
      Returns:
      The greeting message as a String.