Class TankUtil

java.lang.Object
megameklab.util.TankUtil

public final class TankUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    static boolean
    isTankWeapon(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity unit)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 show
      tank - 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 show
      tank - The tank
      Returns:
      Whether the equipment should show on the table