Interface IMekLoader

All Known Implementing Classes:
BFSFile, BLKAeroSpaceFighterFile, BLKBattleArmorFile, BLKConvFighterFile, BLKDropshipFile, BLKFixedWingSupportFile, BLKGunEmplacementFile, BLKHandheldWeaponFile, BLKInfantryFile, BLKJumpshipFile, BLKLargeSupportTankFile, BLKMekFile, BLKProtoMekFile, BLKSmallCraftFile, BLKSpaceStationFile, BLKStructureFile, BLKSupportTankFile, BLKSupportVTOLFile, BLKTankFile, BLKVTOLFile, BLKWarshipFile, MtfFile

public interface IMekLoader
Classes implementing this interface are expected to be able to return a mek with the getMek method or throw an EntityLoadingException. Implementing classes will probably be constructed with a file, or file location as an argument.
Since:
June 21, 2002, 11:03 AM
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • getEntity

      Entity getEntity() throws Exception
      Returns:
      A valid mek, matching the file to the best of MegaMek's current capabilities
      Throws:
      Exception - when the file type isn't understood or the file can't be parsed.