Package games.stendhal.client
Class WeatherSoundManager
java.lang.Object
games.stendhal.client.WeatherSoundManager
- All Implemented Interfaces:
StendhalClient.ZoneChangeListener
Manages starting and stopping weather sounds. Needs to listen to zone changes
to keep up with the weather.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onZoneChange(Zone zone)
Called when the user is changing zone.void
onZoneChangeCompleted(Zone zone)
Called when the user has changed zone.void
onZoneUpdate(Zone zone)
Called when the zone is updated, such as when the coloring changes.
-
Constructor Details
-
WeatherSoundManager
public WeatherSoundManager()
-
-
Method Details
-
onZoneChange
Description copied from interface:StendhalClient.ZoneChangeListener
Called when the user is changing zone.- Specified by:
onZoneChange
in interfaceStendhalClient.ZoneChangeListener
- Parameters:
zone
- the new zone to be changed to. This is not guaranteed to have complete zone data at this stage.
-
onZoneUpdate
Description copied from interface:StendhalClient.ZoneChangeListener
Called when the zone is updated, such as when the coloring changes.- Specified by:
onZoneUpdate
in interfaceStendhalClient.ZoneChangeListener
- Parameters:
zone
- the updated zone
-
onZoneChangeCompleted
Description copied from interface:StendhalClient.ZoneChangeListener
Called when the user has changed zone.- Specified by:
onZoneChangeCompleted
in interfaceStendhalClient.ZoneChangeListener
- Parameters:
zone
- the new zone
-