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
ConstructorsConstructorDescriptionWeatherLayerRenderer(String weather, Color color, Composite blend) Create a new weather layer. -
Method Summary
Modifier and TypeMethodDescriptionvoidRender the layer.voidsetTileset(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:LayerRendererRender the layer.- Specified by:
drawin 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:LayerRendererSet the tiles used for rendering.- Specified by:
setTilesetin classLayerRenderer- Parameters:
tileset- tile set
-