|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgameaction.AbstractGameAction
gameaction.PlaySound
public class PlaySound
This class can be used to put the playing of a sampled sound file into the gameactions queue
| Constructor Summary | |
|---|---|
PlaySound(AbstractCharacterSprite c,
java.lang.String filePath)
Creates a new game action to play a sound |
|
| Method Summary | |
|---|---|
void |
update(long elapsedTime)
Updates the game action |
| Methods inherited from class gameaction.AbstractGameAction |
|---|
getCharacter, isSecondMethodCall |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaySound(AbstractCharacterSprite c,
java.lang.String filePath)
c - character by whose current game location the sound
is playedfilePath - path+filename to sound file| Method Detail |
|---|
public void update(long elapsedTime)
AbstractGameAction
update in class AbstractGameActionelapsedTime - time between two frames
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||