@Override protected void buildRepresentation(IEntity entity){
  final SpriteStore store=SpriteStore.get();
  ZoneInfo info=ZoneInfo.get();
  Sprite sprite=store.getModifiedSprite(translate(getClassResourcePath()),info.getZoneColor(),info.getColorMethod());
  int width=(int)entity.getWidth();
  int height=(int)entity.getHeight();
  BufferedImage image=new BufferedImage(width * 32,height * 32,BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics=image.createGraphics();
  for (int ix=0; ix < width; ix++) {
    for (int iy=0; iy < height; iy++) {
      sprite.draw(graphics,ix * 32,iy * 32);
    }
  }
  setSprite(new ImageSprite(image));
}

@ Override protected void buildRepresentation ( IEntity entity ) { final SpriteStore store = SpriteStore . get ( ) ; ZoneInfo info = ZoneInfo . get ( ) ; Sprite sprite = store . getModifiedSprite ( translate ( getClassResourcePath ( ) ) , info . getZoneColor ( ) , info . getColorMethod ( ) ) ; int width = ( int ) entity . getWidth ( ) ; int height = ( int ) entity . getHeight ( ) ; BufferedImage image = new BufferedImage ( width * 32 , height * 32 , BufferedImage . TYPE_INT_ARGB ) ; Graphics2D graphics = image . createGraphics ( ) ; for ( int ix = 0 ; ix < width ; ix ++ ) { for ( int iy = 0 ; iy < height ; iy ++ ) { sprite . draw ( graphics , ix * 32 , iy * 32 ) ; } } setSprite ( new ImageSprite ( image ) ) ; }
build the visual representation of this entity .
