Package games.stendhal.client
Class WeatherLayerRenderer
java.lang.Object
games.stendhal.client.LayerRenderer
games.stendhal.client.WeatherLayerRenderer
Weather renderer. The weather sprites are looked up from
"data/sprites/weather". Animation can be specified normally in animation.seq.
The sprite height is taken as the tile size for both directions, the rest
can be used for animation.
-
Field Summary
Fields inherited from class games.stendhal.client.LayerRenderer
height, width
-
Constructor Summary
ConstructorDescriptionWeatherLayerRenderer(String weather, Color color, Composite blend)
Create a new weather layer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Render the layer.void
setTileset(Tileset tileset)
Set the tiles used for rendering.Methods inherited from class games.stendhal.client.LayerRenderer
getHeight, getWidth
-
Constructor Details
-
WeatherLayerRenderer
Create a new weather layer.- Parameters:
weather
- weather descriptioncolor
- zone coloring datablend
- zone blending mode
-
-
Method Details
-
draw
Description copied from class:LayerRenderer
Render the layer.- Specified by:
draw
in classLayerRenderer
- Parameters:
g
- The graphics to draw tox
- starting x coordinate in world unitsy
- starting y coordinate in world unitsw
- width in world unitsh
- height in world units
-
setTileset
Description copied from class:LayerRenderer
Set the tiles used for rendering.- Specified by:
setTileset
in classLayerRenderer
- Parameters:
tileset
- tile set
-