Class SmoothingRenderer

java.lang.Object
com.realtime.crossfire.jxclient.gui.map.SmoothingRenderer

public class SmoothingRenderer extends Object
Renderer for painting smoothed faces into map views.
  • Constructor Details

    • SmoothingRenderer

      protected SmoothingRenderer(@NotNull @NotNull SmoothFaces smoothFaces, @NotNull @NotNull FacesProvider facesProvider)
      Creates a new instance.
      Parameters:
      smoothFaces - the smooth faces to use
      facesProvider - the face provider for looking up faces
  • Method Details

    • paintSmooth

      public void paintSmooth(@NotNull @NotNull Graphics graphics, int x, int y, int px, int py, int layer, @NotNull @NotNull CfMap map, int tileSize)
      Draw the smoothing information at given position of map, for a given limit smoothlevel, at a given layer. This operation may be recursive, if all layer above current are to be drawn too.
      Parameters:
      graphics - where to draw (graphics)
      x - the x-coordinate of the map square to draw, in map coordinates
      y - the y-coordinate of the map square to draw, in map coordinates
      px - the x offset for painting
      py - the y offset painting
      layer - the layer to paint
      map - the rendered map
      tileSize - the size of one tile in pixel