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.

Variable Index

 o applet
The applet used to obtain the URL.
 o click
The click sound.
 o fight
The various fighting sounds.
 o gun
The gun sound.
 o paratrooper
The paratrooper sound.

Constructor Index

 o ClientSounds()

Method Index

 o disableSounds()
For those who don't like sounds, they can turn them off.
 o enableSounds()
For those who like sounds, they can turn them on.
 o loadAll(Applet)
Get the images.
 o playClick()
Play a click sound, if sound play is currently on.
 o playGun()
Play a gun sound, if sound play is currently on.
 o playParatrooper()
Play a paratrooper sound, if sound play is currently on.
 o playRandomFight()

Variables

 o applet
  public static Applet applet
The applet used to obtain the URL.
 o gun
  public static AudioClip gun
The gun sound.
 o paratrooper
  public static AudioClip paratrooper
The paratrooper sound.
 o click
  public static AudioClip click
The click sound.
 o fight
  public static AudioClip fight[]
The various fighting sounds.

Constructors

 o ClientSounds
  public ClientSounds()

Methods

 o 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
 o playClick
  public static synchronized void playClick()
Play a click sound, if sound play is currently on.
 o playGun
  public static synchronized void playGun()
Play a gun sound, if sound play is currently on.
 o playParatrooper
  public static synchronized void playParatrooper()
Play a paratrooper sound, if sound play is currently on.
 o playRandomFight
  public static synchronized void playRandomFight()
 o disableSounds
  public static synchronized void disableSounds()
For those who don't like sounds, they can turn them off.
 o 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