Class JumpBlockers

java.lang.Object
mekhq.campaign.utilities.JumpBlockers

public class JumpBlockers extends Object
  • Constructor Details

    • JumpBlockers

      public JumpBlockers()
  • Method Details

    • areAllUnitsJumpCapable

      public static boolean areAllUnitsJumpCapable(Campaign campaign)
      Determines whether the campaign can proceed with a jump given the current hangar contents.

      This method identifies units that are considered Jumpships but 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 current Campaign; must not be null
      Returns:
      true if the jump should proceed (no blockers, GM override chosen, or blockers abandoned); false if the player cancels the jump
      Since:
      0.50.11