Class BLKSupportTankFile

java.lang.Object
megamek.common.loaders.BLKFile
megamek.common.loaders.BLKSupportTankFile
All Implemented Interfaces:
IMekLoader

public class BLKSupportTankFile extends BLKFile implements IMekLoader
Since:
April 6, 2002, 2:06 AM
  • Constructor Details

    • BLKSupportTankFile

      public BLKSupportTankFile(BuildingBlock bb)
  • Method Details

    • defaultVGLFacing

      protected int defaultVGLFacing(int location, boolean rearFacing)
      Description copied from class: BLKFile
      If a vehicular grenade launcher does not have a facing provided, assign a default facing. The vehicle location determines this. For ProtoMeks the only legal location is the torso, but it may be mounted rear-facing.
      Overrides:
      defaultVGLFacing in class BLKFile
      Parameters:
      location - The location where the VGL is mounted.
      rearFacing - Whether the VGL is rear-facing.
      Returns:
      The facing to assign to the VGL.
    • getEntity

      public Entity getEntity() throws EntityLoadingException
      Specified by:
      getEntity in interface IMekLoader
      Returns:
      A valid mek, matching the file to the best of MegaMek's current capabilities
      Throws:
      EntityLoadingException