|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.loaders.HmpFile
public class HmpFile
Based on the hmpread.c program and the MtfFile object. Note that this class doubles as both a MM Heavy Metal Pro parser and a HMP to MTF file converter (when the "main" method is used).
| Constructor Summary | |
|---|---|
HmpFile(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. |
java.lang.String |
getMtf()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HmpFile(java.io.InputStream is)
throws EntityLoadingException
EntityLoadingException| Method Detail |
|---|
public Entity getEntity()
throws EntityLoadingException
IMechLoader
getEntity in interface IMechLoaderEntityLoadingExceptionpublic java.lang.String getMtf()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||