Class AdjustLargeCraftAmmoAction

java.lang.Object
mekhq.campaign.unit.actions.AdjustLargeCraftAmmoAction
All Implemented Interfaces:
IUnitAction

public class AdjustLargeCraftAmmoAction extends Object implements IUnitAction
Checks for additional ammo bins and adds the appropriate part. Large craft can combine all the ammo of a single type into a single bin. Switching the munition type of one or more tons of ammo can require the addition of an ammo bin and can change the ammo bin capacity.
  • Constructor Details

    • AdjustLargeCraftAmmoAction

      public AdjustLargeCraftAmmoAction()
  • Method Details

    • execute

      public void execute(Campaign campaign, Unit unit)
      Description copied from interface: IUnitAction
      Executes an action against a unit in a campaign. The action may have side effects.
      Specified by:
      execute in interface IUnitAction
      Parameters:
      campaign - The campaign object this action is executed against.
      unit - The unit object this action is executed against.