Package megameklab.util
Class TankUtil
java.lang.Object
megameklab.util.TankUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisTankEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Tank tank) Tests whether equipment should be shown on the equipment tab for the unit.static booleanisTankMiscEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity tank) Tests whether equipment should be shown on the equipment tab for the unit as non-weapon equipment.static booleanisTankWeapon(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity unit)
-
Method Details
-
isTankWeapon
public static boolean isTankWeapon(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity unit) -
isTankEquipment
public static boolean isTankEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Tank tank) Tests whether equipment should be shown on the equipment tab for the unit. This is used for both combat vehicles and non-aerospace support vehicles.- Parameters:
eq- The equipment to showtank- The tank- Returns:
- Whether the equipment should show on the table
-
isTankMiscEquipment
public static boolean isTankMiscEquipment(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity tank) Tests whether equipment should be shown on the equipment tab for the unit as non-weapon equipment. This is used for both combat vehicles and non-aerospace support vehicles.- Parameters:
eq- The equipment to showtank- The tank- Returns:
- Whether the equipment should show on the table
-