megamek.common.loaders
Class HmvFile

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

public class HmvFile
extends java.lang.Object
implements IMechLoader

Based on the hmpread.c program and the MtfFile object. This class can not load any Mixed tech or Level 3 vehicles.

Author:
Michael Newcomb

Constructor Summary
HmvFile(java.io.InputStream is)
           
 
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
 

Constructor Detail

HmvFile

public HmvFile(java.io.InputStream is)
        throws EntityLoadingException
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