com.realtime.crossfire.jxclient.sound
Class MusicWatcher

java.lang.Object
  extended by com.realtime.crossfire.jxclient.sound.MusicWatcher

public class MusicWatcher
extends java.lang.Object

Monitors music commands and generates appropriate sound effects.


Field Summary
private  CrossfireMusicListener crossfireMusicListener
          The crossfire stats listener.
private  SoundManager soundManager
          The SoundManager instance to watch.
 
Constructor Summary
MusicWatcher(CrossfireServerConnection crossfireServerConnection, SoundManager soundManager)
          Creates a new instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crossfireMusicListener

@NotNull
private final CrossfireMusicListener crossfireMusicListener
The crossfire stats listener.


soundManager

@NotNull
private final SoundManager soundManager
The SoundManager instance to watch.

Constructor Detail

MusicWatcher

public MusicWatcher(@NotNull
                    CrossfireServerConnection crossfireServerConnection,
                    @NotNull
                    SoundManager soundManager)
Creates a new instance.

Parameters:
crossfireServerConnection - the connection instance
soundManager - the sound manager instance to watch