Class PrintUtil

java.lang.Object
megameklab.printing.PrintUtil

public final class PrintUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isPrintableBAEquipment(megamek.common.EquipmentType eq)
    simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.
    static boolean
    isPrintableEquipment(megamek.common.EquipmentType eq)
     
    static boolean
    isPrintableEquipment(megamek.common.EquipmentType eq, boolean isMek)
    simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.
    static boolean
    isPrintableEquipment(megamek.common.EquipmentType eq, megamek.common.Entity entity)
    simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isPrintableEquipment

      public static boolean isPrintableEquipment(megamek.common.EquipmentType eq)
    • isPrintableEquipment

      public static boolean isPrintableEquipment(megamek.common.EquipmentType eq, megamek.common.Entity entity)
      simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.
      Parameters:
      eq - The equipment to test The equipment
      entity - The Entity it's mounted on
      Returns:
      Whether the equipment should be shown on the record sheet
    • isPrintableEquipment

      public static boolean isPrintableEquipment(megamek.common.EquipmentType eq, boolean isMek)
      simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.
      Parameters:
      eq - The equipment to test The equipment
      isMek - Whether the equipment is mounted on a Mek
      Returns:
      Whether the equipment should be shown on the record sheet
    • isPrintableBAEquipment

      public static boolean isPrintableBAEquipment(megamek.common.EquipmentType eq)
      simple method to let us know if eq should be printed on the weapons and equipment section of the Record sheet.
      Parameters:
      eq - The equipment to test
      Returns:
      True when it should appear on the record sheet