megamek.client.ui.AWT
Class MechTileset

java.lang.Object
  extended by 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
 
Method Summary
 megamek.client.ui.AWT.MechTileset.MechEntry genericFor(Entity entity)
           
 java.awt.Image imageFor(Entity entity, java.awt.Component comp)
           
 void loadFromFile(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

java.lang.String dir
Constructor Detail

MechTileset

public MechTileset(java.lang.String dir)
Creates new MechTileset

Method Detail

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