Class games.Battle.client.ClientApplet.ClientSounds
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.client.ClientApplet.ClientSounds
java.lang.Object
|
+----games.Battle.client.ClientApplet.ClientSounds
- public class ClientSounds
- extends Object
ClientSounds is responsible for loading and building all of the
client sounds.
-
applet
- The applet used to obtain the URL.
-
click
- The click sound.
-
fight
- The various fighting sounds.
-
gun
- The gun sound.
-
paratrooper
- The paratrooper sound.
-
ClientSounds()
-
-
disableSounds()
- For those who don't like sounds, they can turn them off.
-
enableSounds()
- For those who like sounds, they can turn them on.
-
loadAll(Applet)
- Get the images.
-
playClick()
- Play a click sound, if sound play is currently on.
-
playGun()
- Play a gun sound, if sound play is currently on.
-
playParatrooper()
- Play a paratrooper sound, if sound play is currently on.
-
playRandomFight()
-
applet
public static Applet applet
- The applet used to obtain the URL.
gun
public static AudioClip gun
- The gun sound.
paratrooper
public static AudioClip paratrooper
- The paratrooper sound.
click
public static AudioClip click
- The click sound.
fight
public static AudioClip fight[]
- The various fighting sounds.
ClientSounds
public ClientSounds()
loadAll
public static void loadAll(Applet a)
- Get the images. The method blocks until all of the images
have been loaded.
- Parameters:
- a - the applet for the URL
playClick
public static synchronized void playClick()
- Play a click sound, if sound play is currently on.
playGun
public static synchronized void playGun()
- Play a gun sound, if sound play is currently on.
playParatrooper
public static synchronized void playParatrooper()
- Play a paratrooper sound, if sound play is currently on.
playRandomFight
public static synchronized void playRandomFight()
disableSounds
public static synchronized void disableSounds()
- For those who don't like sounds, they can turn them off.
enableSounds
public static synchronized void enableSounds()
- For those who like sounds, they can turn them on.
All Packages Class Hierarchy This Package Previous Next Index