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.


Variable Index

 o bigExplosionSnd
 o explosionSnd
 o wallSnd

Constructor Index

 o SimSound(AudioClip, AudioClip, AudioClip)
The sounds must be passed to the constructor.

Method Index

 o bigExplosion()
A robot has died
 o explosion()
A projectile has hit a robot
 o wallHit()
A projectile has hit a wall

Variables

 o explosionSnd
 protected AudioClip explosionSnd
 o bigExplosionSnd
 protected AudioClip bigExplosionSnd
 o wallSnd
 protected AudioClip wallSnd

Constructors

 o 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.

Methods

 o explosion
 public void explosion()
A projectile has hit a robot

 o bigExplosion
 public void bigExplosion()
A robot has died

 o wallHit
 public void wallHit()
A projectile has hit a wall


All Packages  Class Hierarchy  This Package  Previous  Next  Index