 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.sound;
29 import java.util.Collection;
30 import java.util.EnumSet;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
88 @SuppressWarnings(
"FieldCanBeLocal")
98 public void metaserver() {
104 public void preConnecting(@NotNull
final String serverInfo) {
109 public void connecting(@NotNull
final String serverInfo) {
115 public void connecting(@NotNull
final ClientSocketState clientSocketState, @NotNull
final String param) {
120 public void connected() {
126 public void connectFailed(@NotNull
final String reason) {
183 public void playClip(@NotNull
final Sounds type, @NotNull
final CharSequence action) {
223 public void playMusic(@Nullable
final CharSequence name) {
240 public void shutdown() throws InterruptedException {
final SoundTaskExecutor soundTaskExecutor
The global SoundTaskExecutor instance.
void muteMusic(final boolean muted)
Mutes or unmutes background music.
void playMusic(@Nullable final CharSequence name)
Plays a background music.
SoundManager(@NotNull final GuiStateManager guiStateManager, @Nullable final DebugWriter debugSound)
Creates a new instance.
final GuiStateListener guiStateListener
The GuiStateListener for detecting established or dropped connections.
void setEffectsEnabled(final boolean enabled)
Sets whether sound effects are enabled.
void executeAndWait(@NotNull final Runnable task)
Schedules a task for execution.
boolean effectsEnabled
Whether sound effects are enabled.
void setMuted(final boolean muted)
Sets whether background music is muted.
final DebugWriter debugSound
The writer for logging sound related information or.
Interface for listeners interested gui state changes.
void shutdown()
Terminates all running clips and free resources.
final Collection< Sounds > mutedSounds
The muted sounds.
void start()
Activates this instance.
Manages a set of sound clips (short sound effects).
void debugProtocolWrite(@NotNull final CharSequence str)
Writes a message to the debug protocol.
Maintains the current GuiState.
boolean musicEnabled
Whether background music is enabled.
final ClipManager clipManager
The clip manager for playing sound effects.
void play(@Nullable final CharSequence name)
Plays the given music.
void setMusicEnabled(final boolean enabled)
Sets whether background music is enabled.
void playClip(@NotNull final Sounds type, @NotNull final CharSequence action)
Plays a sound clip.
void play(@NotNull final CharSequence action)
Plays the given sound effect.
void setEnabled(final boolean enabled)
Sets whether background music is enabled.
Executes non-blocking tasks for sound-related functions.
void mute(@NotNull final Sounds type, final boolean mute)
Mutes or unmutes sound effects.
void execute(@NotNull final Runnable task)
Schedules a task for execution.
Writer debug information to a log file.
Connection progress states of the Crossfire server connection.
CHARACTER
A character related sound event.
void start()
Activates this instance.
final MusicManager musicManager
The music manager for playing background music.
void shutdown()
Terminates all sounds and free resources.