megamek.common.loaders
Interface IMechLoader

All Known Implementing Classes:
BLKAeroFile, BLKBattleArmorFile, BLKConvFighterFile, BLKDropshipFile, BLKGunEmplacementFile, BLKInfantryFile, BLKJumpshipFile, BLKLargeSupportTankFile, BLKMechFile, BLKProtoFile, BLKSmallCraftFile, BLKSpaceStationFile, BLKSupportTankFile, BLKSupportVTOLFile, BLKTankFile, BLKVTOLFile, BLKWarshipFile, HmpFile, HmvFile, MepFile, MtfFile, TdbFile

public interface IMechLoader

Classes implementing this interface are expected to be able to return a mech with the getMech method or throw an EntityLoadingException. Implementing classes will probably be constructed with a file, or file location as an argument.

Version:
Author:
Ben

Method Summary
 Entity getEntity()
          Return a valid mech, matching the file to the best of MegaMek's current capabilities, or throw an exception with a helpful message.
 

Method Detail

getEntity

Entity getEntity()
                 throws EntityLoadingException
Return a valid mech, matching the file to the best of MegaMek's current capabilities, or throw an exception with a helpful message.

Throws:
EntityLoadingException