Package com.nerius.game
Interface AudioClipSource
-
- All Known Subinterfaces:
BoardAWTStub
,HeadlessBoardAWTStub
- All Known Implementing Classes:
BoardAWTAdapter
public interface AudioClipSource
Exposes the notion of an ability to get audio clips by name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.applet.AudioClip
getAudioClip(java.lang.String resourceName)
The idea behind this interface is to hide the implementation of getting an audio clip.
-
-
-
Method Detail
-
getAudioClip
java.applet.AudioClip getAudioClip(java.lang.String resourceName)
The idea behind this interface is to hide the implementation of getting an audio clip. An application using anAudioClipSource
would know exactly which clips it would need beforehand. This level of abstraction is useful, for example, in seperating out the logic of a game or an animation from an actual applet or a frame.A typical
resourceName
would be something like "drop.au" or even "audio/drop.au", but not "http://www.blockout.net/audio/drop.au".
-
-