Class SFX
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.renderer.SFX
This class constructs sounds clips to be played in the SFXPlayer class.
- Author:
- Diana
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
An enum of the sounds to be played during the game. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
SFX
Loads a chosen file and initialises a clip from AudioInputStream.- Parameters:
name
- Name of the the sound to be played.
-
-
Method Details
-
getClip
- Returns:
- the SFX clip.
-
getClipName
- Returns:
- the SFX clip name.
-