game
Class SoundManager

java.lang.Object
  extended by game.SoundManager

public class SoundManager
extends java.lang.Object

the sound manager is responsible to provide the sounds for the game. It is a singleton accessed via getInstance()


Nested Class Summary
 class SoundManager.SoundManagerThread
           
 
Field Summary
private  java.applet.AudioClip bounce
           
private  java.applet.AudioClip explode
           
private  boolean playBounce
           
private  boolean playCreatePower
           
private  boolean playExplode
           
private  boolean playReceivePower
           
private  boolean playRocketDie
           
private  boolean playShoot
           
private  java.applet.AudioClip powerCreate
           
private  java.applet.AudioClip powerReceive
           
private  java.applet.AudioClip rocketDie
           
private  java.applet.AudioClip shoot
           
private static SoundManager sound
           
private  boolean startThrust
           
private  boolean stopThrust
           
private  java.applet.AudioClip thrust
           
private  boolean thruston
           
 
Constructor Summary
private SoundManager()
           
 
Method Summary
 void bounceSound()
           
 void explodeSound()
           
static SoundManager getInstance()
          gets the instance
 void powerCreateSound()
           
 void powerReceiveSound()
           
 void rocketDie()
           
 void shootSound()
           
 void stopThrustSound()
           
 void thrustSound()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shoot

private java.applet.AudioClip shoot

explode

private java.applet.AudioClip explode

thrust

private java.applet.AudioClip thrust

rocketDie

private java.applet.AudioClip rocketDie

powerCreate

private java.applet.AudioClip powerCreate

powerReceive

private java.applet.AudioClip powerReceive

bounce

private java.applet.AudioClip bounce

thruston

private boolean thruston

sound

private static SoundManager sound

playShoot

private volatile boolean playShoot

playExplode

private volatile boolean playExplode

playRocketDie

private volatile boolean playRocketDie

playCreatePower

private volatile boolean playCreatePower

playReceivePower

private volatile boolean playReceivePower

playBounce

private volatile boolean playBounce

startThrust

private volatile boolean startThrust

stopThrust

private volatile boolean stopThrust
Constructor Detail

SoundManager

private SoundManager()
Method Detail

getInstance

public static SoundManager getInstance()
gets the instance


shootSound

public void shootSound()

explodeSound

public void explodeSound()

thrustSound

public void thrustSound()

stopThrustSound

public void stopThrustSound()

rocketDie

public void rocketDie()

powerCreateSound

public void powerCreateSound()

powerReceiveSound

public void powerReceiveSound()

bounceSound

public void bounceSound()