|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeux_etudiant.RessourceCache<java.applet.AudioClip>
jeux_etudiant.SoundCache
public class SoundCache
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 |
---|
public SoundCache()
Method Detail |
---|
public java.applet.AudioClip loadRessource(java.net.URL url)
loadRessource
in class RessourceCache<java.applet.AudioClip>
url
- l'URL de la ressource
public void playSound(java.lang.String name)
name
- Le nom du son à jouer une seule foispublic void loopSound(java.lang.String name)
name
- Le nom du son à jouer en boucle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |