Class BatchallFactions
java.lang.Object
mekhq.campaign.universe.factionStanding.BatchallFactions
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getGreeting
(Campaign campaign, String factionCode) Retrieves the greeting for faction based on infamy.static boolean
usesBatchalls
(String factionCode) Determines whether a given faction engages in batchalling.
-
Field Details
-
BATCHALL_FACTIONS
-
-
Constructor Details
-
BatchallFactions
public BatchallFactions()
-
-
Method Details
-
usesBatchalls
Determines whether a given faction engages in batchalling.- Parameters:
factionCode
- The faction code to check eligibility for. Must be a non-nullString
.- Returns:
true
if the faction code engages in batchalling,false
otherwise.
-
getGreeting
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
.
-