com.realtime.crossfire.jxclient.sound
Class SoundWatcher

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

public class SoundWatcher
extends java.lang.Object

Monitors sound and sound2 commands received from the server to generate sound effects.


Field Summary
private  CrossfireSoundListener crossfireSoundListener
          The crossfire sound listener.
private  SoundManager soundManager
          The SoundManager instance to watch.
 
Constructor Summary
SoundWatcher(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

crossfireSoundListener

@NotNull
private final CrossfireSoundListener crossfireSoundListener
The crossfire sound listener.


soundManager

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

Constructor Detail

SoundWatcher

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

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