game
Class SoundManager
java.lang.Object
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()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SoundManager
private SoundManager()
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()