public Image loadPreviewImage(Entity entity,Image camo,int tint,Component bp){
  Image base=mechTileset.imageFor(entity,boardview,-1);
  EntityImage entityImage=new EntityImage(base,tint,camo,bp);
  entityImage.loadFacings();
  Image preview=entityImage.getFacing(entity.getFacing());
  MediaTracker loadTracker=new MediaTracker(boardview);
  loadTracker.addImage(preview,0);
  try {
    loadTracker.waitForID(0);
  }
 catch (  InterruptedException e) {
  }
  return preview;
}

public Image loadPreviewImage ( Entity entity , Image camo , int tint , Component bp ) { Image base = mechTileset . imageFor ( entity , boardview , - 1 ) ; EntityImage entityImage = new EntityImage ( base , tint , camo , bp ) ; entityImage . loadFacings ( ) ; Image preview = entityImage . getFacing ( entity . getFacing ( ) ) ; MediaTracker loadTracker = new MediaTracker ( boardview ) ; loadTracker . addImage ( preview , 0 ) ; try { loadTracker . waitForID ( 0 ) ; } catch ( InterruptedException e ) { } return preview ; }
loads a preview image of the unit into the bufferedpanel .
