Class SupportVeeTROView

java.lang.Object
megamek.common.templates.TROView
megamek.common.templates.SupportVeeTROView

public class SupportVeeTROView extends TROView
Creates a TRO template model for support vehicles.
  • Constructor Details

    • SupportVeeTROView

      public SupportVeeTROView(Tank tank)
  • Method Details

    • getTemplateFileName

      protected String getTemplateFileName(boolean html)
      Overrides:
      getTemplateFileName in class TROView
    • initModel

      protected void initModel(EntityVerifier verifier)
      Overrides:
      initModel in class TROView
    • formatLocationTableEntry

      protected String formatLocationTableEntry(Entity entity, Mounted<?> mounted)
      Description copied from class: TROView
      Formats displayable location name for use in equipment table. The format of the name can vary by unit type due to available space based on number of columns, and in some cases the official TROs have different location names than the ones used by MM.
      Overrides:
      formatLocationTableEntry in class TROView
      Parameters:
      entity - The entity the TRO is created for
      mounted - The mounted equipment
      Returns:
      The location name to use in the table.
    • addEquipment

      protected int addEquipment(Entity entity, boolean includeAmmo)
      Overrides:
      addEquipment in class TROView
    • skipMount

      protected boolean skipMount(Mounted<?> mount, boolean includeAmmo)
      Description copied from class: TROView
      Test for whether the mount should be included in the equipment inventory section.
      Overrides:
      skipMount in class TROView
      Parameters:
      mount - The equipment mount
      includeAmmo - Whether to include ammo in the list
      Returns:
      Whether to list the equipment in the inventory section