|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
vooga.gameEngine.event.AudioEvent
public class AudioEvent
Generated by GameRelatedObject
s when a sound is desired to be played.
Each sound event has a key which can be used in combination with a data
structure or file to retrieve the proper audio clip.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
AudioEvent(java.lang.Object source,
java.lang.String soundKey)
Default constructor for AudioEvent |
Method Summary | |
---|---|
java.lang.String |
getSoundKey()
Provides access to this Event's Audio Key which is intended to be used to retrieve and play a sound file. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AudioEvent(java.lang.Object source, java.lang.String soundKey)
AudioEvent
source
- The object firing this AudioEvent
soundKey
- A key for mapping this event to a sound.Method Detail |
---|
public java.lang.String getSoundKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |