public void loadImage(Entity entity)
public synchronized void loadImage(Entity entity)
    public void loadImage(Entity entity)    {        Image base = mechTileset.imageFor(entity, comp);        Image wreck = null;        if ( !(entity instanceof Infantry) &&             !(entity instanceof Protomech)) {            wreck = wreckTileset.imageFor(entity, comp);        }        Player player = entity.getOwner();        int tint = PlayerColors.getColorRGB(player.getColorIndex());        Image camo = getPlayerCamo( player );        EntityImage entityImage = null;        // check if we have a duplicate image already loaded        for (Iterator j = mechImageList.iterator(); j.hasNext();) {            EntityImage onList = (EntityImage)j.next();            if (onList.getBase() == base && onList.tint == tint) {                entityImage = onList;                break;            }        }        // if we don't have a cached image, make a new one        if (entityImage == null) {            entityImage = new EntityImage(base, wreck, tint, camo, comp);            mechImageList.add(entityImage);            entityImage.loadFacings();            for (int j = 0; j < 6; j++) {                tracker.addImage(entityImage.getFacing(j), 1);            }        }        // relate this id to this image set        mechImages.put(new Integer(entity.getId()), entityImage);    }