All Packages Class Hierarchy This Package Previous Next Index
Class ch.jp.robwar.SimSound
java.lang.Object
|
+----ch.jp.robwar.SimSound
- public class SimSound
- extends Object
- implements SimEventListener
This class uses Simulator's SimEventListener facility to add
sound to the game.
-
bigExplosionSnd
-
-
explosionSnd
-
-
wallSnd
-
-
SimSound(AudioClip, AudioClip, AudioClip)
- The sounds must be passed to the constructor.
-
bigExplosion()
- A robot has died
-
explosion()
- A projectile has hit a robot
-
wallHit()
- A projectile has hit a wall
explosionSnd
protected AudioClip explosionSnd
bigExplosionSnd
protected AudioClip bigExplosionSnd
wallSnd
protected AudioClip wallSnd
SimSound
public SimSound(AudioClip explosionSound,
AudioClip bigExplosionSound,
AudioClip wallSound)
- The sounds must be passed to the constructor.
This is necessary because only applets can load
sounds.
explosion
public void explosion()
- A projectile has hit a robot
bigExplosion
public void bigExplosion()
- A robot has died
wallHit
public void wallHit()
- A projectile has hit a wall
All Packages Class Hierarchy This Package Previous Next Index