Class InfantryUtil

java.lang.Object
megameklab.util.InfantryUtil

public final class InfantryUtil extends Object
  • Method Details

    • replaceMainWeapon

      public static void replaceMainWeapon(megamek.common.units.Infantry unit, megamek.common.weapons.infantry.InfantryWeapon weapon, boolean secondary)
    • replaceFieldGun

      public static void replaceFieldGun(megamek.common.units.Infantry unit, megamek.common.equipment.WeaponType fieldGun, int num)
    • trimInfantryWeaponNames

      public static String trimInfantryWeaponNames(String weaponName)
    • resetInfantryArmor

      public static void resetInfantryArmor(megamek.common.units.Infantry unit)
    • isInfantryEquipment

      public static boolean isInfantryEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity unit)