public class GridMapSquarePainter
extends java.lang.Object
Constructor and Description |
---|
GridMapSquarePainter(@NotNull ResourceIcons resourceIcons)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(@NotNull java.awt.Graphics graphics,
int gridFlags,
boolean light,
int x,
int y,
@NotNull java.awt.image.ImageObserver imageObserver)
Paints overlay images for one grid square.
|
public GridMapSquarePainter(@NotNull @NotNull ResourceIcons resourceIcons)
resourceIcons
- the resource icons for creating iconspublic void paint(@NotNull @NotNull java.awt.Graphics graphics, int gridFlags, boolean light, int x, int y, @NotNull @NotNull java.awt.image.ImageObserver imageObserver)
graphics
- the graphics to paint intogridFlags
- the grid flags to paintlight
- whether this map square is affected by a light emitting game
objectx
- the x-coordinate to paint aty
- the y-coordinate to paint atimageObserver
- the image observer to notify