jeux_etudiant
Class SoundCache

java.lang.Object
  extended by jeux_etudiant.RessourceCache<java.applet.AudioClip>
      extended by jeux_etudiant.SoundCache

public class SoundCache
extends RessourceCache<java.applet.AudioClip>

Author:
jub Classe qui défine un gestionnaire de son.

Constructor Summary
SoundCache()
           
 
Method Summary
 java.applet.AudioClip loadRessource(java.net.URL url)
           
 void loopSound(java.lang.String name)
           
 void playSound(java.lang.String name)
           
 
Methods inherited from class jeux_etudiant.RessourceCache
getRessource, loadRessource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundCache

public SoundCache()
Method Detail

loadRessource

public java.applet.AudioClip loadRessource(java.net.URL url)
Specified by:
loadRessource in class RessourceCache<java.applet.AudioClip>
Parameters:
url - l'URL de la ressource
Returns:
la ressource

playSound

public void playSound(java.lang.String name)
Parameters:
name - Le nom du son à jouer une seule fois

loopSound

public void loopSound(java.lang.String name)
Parameters:
name - Le nom du son à jouer en boucle