Class ZoneInfo

java.lang.Object
games.stendhal.client.ZoneInfo

public class ZoneInfo extends Object
General information about the current zone.
  • Method Details

    • get

      public static ZoneInfo get()
      Get the ZoneInfo instance.
      Returns:
      zone info
    • getColorMethod

      public Composite getColorMethod()
      Get the color blend method. Mode for applying the zone color to tile sets and entity sprites.
      Returns:
      blend mode
    • getZoneColor

      public Color getZoneColor()
      Get the zone specific color. This should be applied to tile sets and most entities using the zone blend method.
      Returns:
      zone color
    • setSingleGlobalizedMusic

      public void setSingleGlobalizedMusic(String musicName, float volume)
      Loops a sound with uniform volume that continues playing across zone changes. Any currently playing instance will be stopped before starting a new one. Also, calling without parameters will stop current instance if playing.
      Parameters:
      name - Sound file basename. If value is `null` music will be stopped.
      volume - Volume level between 0.0 and 1.0.