|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.Sound
net.kolls.railworld.sound.NoSound
public class NoSound
Provides an empty interface that pretends to play sounds, but does nothing. This is useful if for some reason the sound systems all causing trouble. This way we don't have to extend anything to have a "sound off" option.
| Field Summary |
|---|
| Fields inherited from class net.kolls.railworld.Sound |
|---|
frozen, fzlc, loopcnt |
| Constructor Summary | |
|---|---|
NoSound()
|
|
| Method Summary | |
|---|---|
boolean |
canPlay()
Is the sound loaded and ready to play? |
void |
loop()
Loop the sound. |
void |
play()
Play the sound. |
boolean |
playing()
Indicate if the sound is currently playing or looping. |
void |
stop()
Stop the sound. |
| Methods inherited from class net.kolls.railworld.Sound |
|---|
freeze, unfreeze |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoSound()
| Method Detail |
|---|
public boolean canPlay()
Sound
canPlay in class Soundtrue if the sound can be played.public void loop()
Sound
loop in class Soundpublic void play()
Sound
play in class Soundpublic boolean playing()
Sound
playing in class Soundtrue if the sound is playing.public void stop()
Sound
stop in class Sound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||