megamek.client.ui.swing
Class MechTileset
java.lang.Object
megamek.client.ui.swing.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.
- Author:
- Ben
|
Field Summary |
(package private) java.lang.String |
dir
|
|
Constructor Summary |
MechTileset(java.lang.String dir)
Creates new MechTileset |
|
Method Summary |
megamek.client.ui.swing.MechTileset.MechEntry |
genericFor(Entity entity,
int secondaryPos)
|
java.awt.Image |
imageFor(Entity entity,
java.awt.Component comp,
int secondaryPos)
|
void |
loadFromFile(java.lang.String filename)
|
| 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,
int secondaryPos)
genericFor
public megamek.client.ui.swing.MechTileset.MechEntry genericFor(Entity entity,
int secondaryPos)
loadFromFile
public void loadFromFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException