megamek.common
Class MechFileParser
java.lang.Object
megamek.common.MechFileParser
public class MechFileParser
- extends java.lang.Object
|
Method Summary |
static void |
dispose()
|
Entity |
getEntity()
|
static void |
main(java.lang.String[] args)
|
void |
parse(java.io.InputStream is,
java.lang.String fileName)
|
void |
parse(java.io.InputStream is,
java.lang.String fileName,
boolean MMLLoaded)
|
static void |
postLoadInit(Entity ent)
File-format agnostic location to do post-load initialization on a unit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MechFileParser
public MechFileParser(java.io.File f)
throws EntityLoadingException
- Throws:
EntityLoadingException
MechFileParser
public MechFileParser(java.io.File f,
java.lang.String entryName)
throws EntityLoadingException
- Throws:
EntityLoadingException
MechFileParser
public MechFileParser(java.io.File f,
boolean MMLoaded)
throws EntityLoadingException
- Throws:
EntityLoadingException
MechFileParser
public MechFileParser(java.io.File f,
java.lang.String entryName,
boolean MMLLoaded)
throws EntityLoadingException
- Throws:
EntityLoadingException
MechFileParser
public MechFileParser(java.io.InputStream is,
java.lang.String fileName)
throws EntityLoadingException
- Throws:
EntityLoadingException
getEntity
public Entity getEntity()
parse
public void parse(java.io.InputStream is,
java.lang.String fileName)
throws EntityLoadingException
- Throws:
EntityLoadingException
parse
public void parse(java.io.InputStream is,
java.lang.String fileName,
boolean MMLLoaded)
throws EntityLoadingException
- Throws:
EntityLoadingException
postLoadInit
public static void postLoadInit(Entity ent)
throws EntityLoadingException
- File-format agnostic location to do post-load initialization on a unit.
Automatically add BattleArmorHandles to all OmniMechs.
- Throws:
EntityLoadingException
main
public static void main(java.lang.String[] args)
dispose
public static void dispose()