megamek.common.loaders
Class MtfFile

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

public class MtfFile
extends java.lang.Object
implements IMechLoader

Version:
Author:
Ben

Field Summary
static java.lang.String ARMORED
           
(package private)  java.lang.String armorType
           
(package private)  java.lang.String[] armorValues
           
(package private)  java.lang.String baseChassieHeatSinks
           
(package private)  java.lang.String chassisConfig
           
(package private)  java.lang.String cockpitType
           
(package private)  java.lang.String[][] critData
           
(package private)  java.lang.String ejectionType
           
static java.lang.String EMPTY
           
(package private)  java.lang.String engine
           
(package private)  java.lang.String gyroType
           
(package private)  java.lang.String heatSinks
           
(package private)  java.lang.String history
           
(package private)  java.util.Hashtable<EquipmentType,Mounted> hSharedEquip
           
(package private)  java.lang.String imagePath
           
(package private)  java.lang.String internalType
           
(package private)  java.lang.String jumpMP
           
static int[] locationOrder
           
(package private)  java.lang.String model
           
(package private)  java.lang.String myomerType
           
(package private)  java.lang.String name
           
static int[] rearLocationOrder
           
(package private)  java.lang.String rulesLevel
           
(package private)  java.lang.String source
           
(package private)  java.lang.String techBase
           
(package private)  java.lang.String techYear
           
(package private)  java.lang.String tonnage
           
(package private)  java.lang.String version
           
(package private)  java.util.Vector<Mounted> vSplitWeapons
           
(package private)  java.lang.String walkMP
           
(package private)  java.lang.String weaponCount
           
(package private)  java.lang.String[] weaponData
           
 
Constructor Summary
MtfFile(java.io.InputStream is)
          Creates new MtfFile
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

java.lang.String version

name

java.lang.String name

model

java.lang.String model

chassisConfig

java.lang.String chassisConfig

techBase

java.lang.String techBase

techYear

java.lang.String techYear

rulesLevel

java.lang.String rulesLevel

source

java.lang.String source

tonnage

java.lang.String tonnage

engine

java.lang.String engine

internalType

java.lang.String internalType

myomerType

java.lang.String myomerType

gyroType

java.lang.String gyroType

cockpitType

java.lang.String cockpitType

ejectionType

java.lang.String ejectionType

heatSinks

java.lang.String heatSinks

walkMP

java.lang.String walkMP

jumpMP

java.lang.String jumpMP

baseChassieHeatSinks

java.lang.String baseChassieHeatSinks

armorType

java.lang.String armorType

armorValues

java.lang.String[] armorValues

weaponCount

java.lang.String weaponCount

weaponData

java.lang.String[] weaponData

critData

java.lang.String[][] critData

history

java.lang.String history

imagePath

java.lang.String imagePath

hSharedEquip

java.util.Hashtable<EquipmentType,Mounted> hSharedEquip

vSplitWeapons

java.util.Vector<Mounted> vSplitWeapons

locationOrder

public static final int[] locationOrder

rearLocationOrder

public static final int[] rearLocationOrder

EMPTY

public static final java.lang.String EMPTY
See Also:
Constant Field Values

ARMORED

public static final java.lang.String ARMORED
See Also:
Constant Field Values
Constructor Detail

MtfFile

public MtfFile(java.io.InputStream is)
        throws EntityLoadingException
Creates new MtfFile

Throws:
EntityLoadingException
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