games.strategy.common.image
Class UnitImageFactory

java.lang.Object
  extended by games.strategy.common.image.UnitImageFactory

public class UnitImageFactory
extends java.lang.Object

Utility class to get image for a Unit.

This class is a simplified version of Sean Bridges's games.strategy.triplea.image.UnitImageFactory.

Author:
Lane Schwartz

Constructor Summary
UnitImageFactory()
          Creates new IconImageFactory
 
Method Summary
 java.awt.Image getImage(UnitType type, PlayerID player, GameData data)
          Return the appropriate unit image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitImageFactory

public UnitImageFactory()
Creates new IconImageFactory

Method Detail

getImage

public java.awt.Image getImage(UnitType type,
                               PlayerID player,
                               GameData data)
Return the appropriate unit image.