megamek.client.ui.AWT
Class MechTileset
java.lang.Object
megamek.client.ui.AWT.MechTileset
public class MechTileset
- extends java.lang.Object
MechTileset is a misleading name, as this matches any unit, not just mechs
with the appropriate image. It requires data/images/units/mechset.txt, the
format of which is explained in that file.
- Version:
- Author:
- Ben
|
Field Summary |
(package private) java.lang.String |
dir
|
|
Constructor Summary |
MechTileset(java.lang.String dir)
Creates new MechTileset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dir
java.lang.String dir
MechTileset
public MechTileset(java.lang.String dir)
- Creates new MechTileset
imageFor
public java.awt.Image imageFor(Entity entity,
java.awt.Component comp)
genericFor
public megamek.client.ui.AWT.MechTileset.MechEntry genericFor(Entity entity)
loadFromFile
public void loadFromFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException