public class SmoothingRenderer
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
SmoothingRenderer(@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull SmoothFaces smoothFaces,
@NotNull FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
paintSmooth(@NotNull java.awt.Graphics graphics,
@NotNull java.awt.Point pos,
int level,
int firstLayer,
boolean allLayers,
int borderOffsetX,
int borderOffsetY)
Draw the smoothing information at given position of map, for a given
limit smoothlevel, at a given layer.
|
protected SmoothingRenderer(@NotNull
@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull
@NotNull SmoothFaces smoothFaces,
@NotNull
@NotNull FaceObjectProviders faceObjectProviders)
mapModel - the map model to rendersmoothFaces - the smooth faces to usefaceObjectProviders - the face object providers for looking up
facespublic void paintSmooth(@NotNull
@NotNull java.awt.Graphics graphics,
@NotNull
@NotNull java.awt.Point pos,
int level,
int firstLayer,
boolean allLayers,
int borderOffsetX,
int borderOffsetY)
graphics - where to draw (graphics)pos - the coordinate of the map square to draw, in map coordinateslevel - the limit smoothlevel (smooth levels above this are drawn)firstLayer - the layer (map z coordinate) to draw; note that
invisible objects are supposed to not use a layer, to stay coherent with
client behaviorallLayers - whether or not to draw also layers above current oneborderOffsetX - the border x offsetborderOffsetY - the border y offset