|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.actions.AbstractAction
de.rico.adventure.actions.custom.PlayMP3
public class PlayMP3
This game action can be used to play an mp3 sound file either in a queued or a concurrent way.
| Constructor Summary | |
|---|---|
PlayMP3(java.lang.String path,
boolean loop,
boolean concurrent)
Game action that plays an mp3 file queued or concurrently. |
|
| Method Summary | |
|---|---|
void |
draw(javax.media.opengl.GL gl)
This method renders the game action, if needed. |
void |
finishUp()
Implementations of this method hold code that needs to be called before the game action can be removed from the queue (prematurely) without causing side effects. |
void |
stop()
This is a method to stop the playback of the sound in the special case that you looped the sound and played it concurrently. |
void |
update(long elapsedTime)
This method updates the game action |
| Methods inherited from class de.rico.adventure.actions.AbstractAction |
|---|
getEntity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlayMP3(java.lang.String path,
boolean loop,
boolean concurrent)
stop() method to stop it.
removeFirst()
method
path - path to mp3 sound fileloop - loop the sound? --> true=yes, false=noconcurrent - play concurrently --> true=yes, false=no| Method Detail |
|---|
public void update(long elapsedTime)
AbstractAction
update in class AbstractActionelapsedTime - time between two framespublic void draw(javax.media.opengl.GL gl)
AbstractAction
draw in class AbstractActionpublic void finishUp()
AbstractAction
finishUp in class AbstractActionpublic void stop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||