Package games.stendhal.client
Class LayerRenderer
java.lang.Object
games.stendhal.client.LayerRenderer
- Direct Known Subclasses:
EffectLayer
,EmptyLayerRenderer
,WeatherLayerRenderer
This is a helper base class to render a layer.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
width
protected int width -
height
protected int height
-
-
Constructor Details
-
LayerRenderer
public LayerRenderer()
-
-
Method Details
-
getWidth
public int getWidth()- Returns:
- the width in world units
-
getHeight
public int getHeight()- Returns:
- the height in world units
-
draw
Render the layer.- 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
Set the tiles used for rendering.- Parameters:
tileset
- tile set
-