megamek.common.loaders
Class BLKWarshipFile

java.lang.Object
  extended by megamek.common.loaders.BLKFile
      extended by megamek.common.loaders.BLKWarshipFile
All Implemented Interfaces:
IMechLoader

public class BLKWarshipFile
extends BLKFile
implements IMechLoader


Field Summary
static int AFT
           
static int ALS
           
static int ARS
           
static int FLS
           
static int FRS
           
static int LBS
           
static int NOSE
           
static int RBS
           
 
Fields inherited from class megamek.common.loaders.BLKFile
COMPACT, dataFile, FISSION, FUELCELL, FUSION, ICE, LIGHT, XL, XXL
 
Constructor Summary
BLKWarshipFile(BuildingBlock bb)
           
 
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.
protected  void loadEquipment(Entity en, java.lang.String sName, int nLoc)
           
 
Methods inherited from class megamek.common.loaders.BLKFile
isMine, setTechLevel, translateEngineCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOSE

public static final int NOSE
See Also:
Constant Field Values

FLS

public static final int FLS
See Also:
Constant Field Values

FRS

public static final int FRS
See Also:
Constant Field Values

ALS

public static final int ALS
See Also:
Constant Field Values

ARS

public static final int ARS
See Also:
Constant Field Values

AFT

public static final int AFT
See Also:
Constant Field Values

LBS

public static final int LBS
See Also:
Constant Field Values

RBS

public static final int RBS
See Also:
Constant Field Values
Constructor Detail

BLKWarshipFile

public BLKWarshipFile(BuildingBlock bb)
Method Detail

getEntity

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

Specified by:
getEntity in interface IMechLoader
Throws:
EntityLoadingException

loadEquipment

protected void loadEquipment(Entity en,
                             java.lang.String sName,
                             int nLoc)
                      throws EntityLoadingException
Overrides:
loadEquipment in class BLKFile
Throws:
EntityLoadingException