gameaction
Class PlaySound

java.lang.Object
  extended by gameaction.AbstractGameAction
      extended by gameaction.PlaySound
All Implemented Interfaces:
java.io.Serializable

public class PlaySound
extends AbstractGameAction

This class can be used to put the playing of a sampled sound file into the gameactions queue

Author:
Frank Bruns
See Also:
Serialized Form

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

PlaySound

public PlaySound(AbstractCharacterSprite c,
                 java.lang.String filePath)
Creates a new game action to play a sound

Parameters:
c - character by whose current game location the sound is played
filePath - path+filename to sound file
Method Detail

update

public void update(long elapsedTime)
Description copied from class: AbstractGameAction
Updates the game action

Specified by:
update in class AbstractGameAction
Parameters:
elapsedTime - time between two frames