22 package com.realtime.crossfire.jxclient.sound;
26 import org.jetbrains.annotations.NotNull;
45 @SuppressWarnings(
"FieldCanBeLocal")
49 public void commandSoundReceived(
final int x,
final int y,
final int num,
final int type) {
54 public void commandSound2Received(
final int x,
final int y,
final int dir,
final int volume,
final int type, @NotNull
final String action, @NotNull
final String name) {
final CrossfireSoundListener crossfireSoundListener
The crossfire sound listener.
Interface for listeners interested in "sound" commands.
void playClip(@NotNull final Sounds type, @Nullable final String name, @NotNull final String action)
Plays a sound clip.
final SoundManager soundManager
The SoundManager instance to watch.
A character related sound event.
SoundWatcher(@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final SoundManager soundManager)
Creates a new instance.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Monitors sound and sound2 commands received from the server to generate sound effects.