Class PrintProtoMek

All Implemented Interfaces:
Printable, IdConstants

public class PrintProtoMek extends PrintEntity
Lays out a record sheet block for a single ProtoMek
  • Constructor Details

    • PrintProtoMek

      public PrintProtoMek(megamek.common.units.ProtoMek proto, int startPage, int unitIndex, RecordSheetOptions options)
      Creates an SVG object for the record sheet
      Parameters:
      proto - The protoMek to print
      startPage - The print job page number for this sheet
      unitIndex - The index of this unit on the page
      options - Overrides the global options for which elements are printed
  • Method Details

    • getSVGFileName

      protected String getSVGFileName(int pageNumber)
      Specified by:
      getSVGFileName in class PrintRecordSheet
      Parameters:
      pageNumber - The page number in the current record sheet, where the first page is numbered zero.
      Returns:
      The file name for the current page in the record sheet image directory
    • getEntity

      public megamek.common.units.Entity getEntity()
      Specified by:
      getEntity in class PrintEntity
    • getRecordSheetTitle

      protected String getRecordSheetTitle()
      Specified by:
      getRecordSheetTitle in class PrintRecordSheet
      Returns:
      The title to use for the record sheet
    • writeTextFields

      protected void writeTextFields()
      Overrides:
      writeTextFields in class PrintEntity
    • formatRun

      protected String formatRun()
      Overrides:
      formatRun in class PrintEntity
    • supportsAlternateArmorGrouping

      protected boolean supportsAlternateArmorGrouping()
      Specified by:
      supportsAlternateArmorGrouping in class PrintEntity
    • drawArmor

      protected void drawArmor()
      Overrides:
      drawArmor in class PrintEntity
    • applyCoreComponentsCriticalDamage

      protected void applyCoreComponentsCriticalDamage()
      Description copied from class: PrintEntity
      Applies the critical damage to the core components of the unit and crew. This should be overridden by subclasses that have core components.
      Overrides:
      applyCoreComponentsCriticalDamage in class PrintEntity