Package megameklab.util
Class InfantryUtil
java.lang.Object
megameklab.util.InfantryUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInfantryEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity unit) static voidreplaceFieldGun(megamek.common.units.Infantry unit, megamek.common.equipment.WeaponType fieldGun, int num) static voidreplaceMainWeapon(megamek.common.units.Infantry unit, megamek.common.weapons.infantry.InfantryWeapon weapon, boolean secondary) static voidresetInfantryArmor(megamek.common.units.Infantry unit) static StringtrimInfantryWeaponNames(String weaponName)
-
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
-
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)
-