|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.gui.sound.SoundLibrary
public class SoundLibrary
A SoundLibrary stores a number of playlists.
Nested Class Summary | |
---|---|
static class |
SoundLibrary.SoundEffect
|
Constructor Summary | |
---|---|
SoundLibrary(java.io.File dir)
The constructor. |
Method Summary | |
---|---|
Playlist |
get(SoundLibrary.SoundEffect effect)
Returns a playlist identified by id. |
Playlist |
get(java.lang.String string)
Returns a playlist associated with a Nation . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoundLibrary(java.io.File dir) throws FreeColException
dir
- A directory containing the sound-files.
FreeColException
- If the file spesified is not a directory.Method Detail |
---|
public Playlist get(java.lang.String string)
Nation
.
string
- The key to look up a Playlist.
PlayList
specified by the ID.public Playlist get(SoundLibrary.SoundEffect effect)
effect
- The sound effect.
Playlist
specified by the ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |