Package mekhq.campaign.utilities
Class JumpBlockers
java.lang.Object
mekhq.campaign.utilities.JumpBlockers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareAllUnitsJumpCapable(Campaign campaign) Determines whether the campaign can proceed with a jump given the current hangar contents.
-
Constructor Details
-
JumpBlockers
public JumpBlockers()
-
-
Method Details
-
areAllUnitsJumpCapable
Determines whether the campaign can proceed with a jump given the current hangar contents.This method identifies units that are considered
Jumpshipsbut are not jump-capable (for example, lacking a drive core or otherwise unable to jump). If no such units exist, the jump is allowed immediately. Otherwise, the player is notified and can choose how to proceed (cancel, GM override, or abandon the blocking units).- Parameters:
campaign- the currentCampaign; must not benull- Returns:
trueif the jump should proceed (no blockers, GM override chosen, or blockers abandoned);falseif the player cancels the jump- Since:
- 0.50.11
-