Package pi.resources.sound
Class SinglePlayMusic
java.lang.Object
pi.resources.sound.SinglePlayMusic
A
Music that plays a sound once and then stops.- Author:
- Steffen Wilke, Matthias Wilke, Josef Friedrich
-
Constructor Summary
ConstructorsConstructorDescriptionSinglePlayMusic(String filePath) Initializes a newSinglePlayMusicfor the specified sound.SinglePlayMusic(Sound sound) Initializes a newSinglePlayMusicfor the specified sound. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SinglePlayMusic
Initializes a newSinglePlayMusicfor the specified sound.- Parameters:
filePath- The name of the sound to be played by this music.
-
SinglePlayMusic
Initializes a newSinglePlayMusicfor the specified sound.- Parameters:
sound- The sound to be played by this music.
-
-
Method Details