Class WeatherLayerRenderer

java.lang.Object
games.stendhal.client.LayerRenderer
games.stendhal.client.WeatherLayerRenderer

public class WeatherLayerRenderer extends LayerRenderer
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.
  • Constructor Details

    • WeatherLayerRenderer

      public WeatherLayerRenderer(String weather, Color color, Composite blend)
      Create a new weather layer.
      Parameters:
      weather - weather description
      color - zone coloring data
      blend - zone blending mode
  • Method Details

    • draw

      public void draw(Graphics g, int x, int y, int w, int h)
      Description copied from class: LayerRenderer
      Render the layer.
      Specified by:
      draw in class LayerRenderer
      Parameters:
      g - The graphics to draw to
      x - starting x coordinate in world units
      y - starting y coordinate in world units
      w - width in world units
      h - height in world units
    • setTileset

      public void setTileset(Tileset tileset)
      Description copied from class: LayerRenderer
      Set the tiles used for rendering.
      Specified by:
      setTileset in class LayerRenderer
      Parameters:
      tileset - tile set