java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.renderer.SFX

public class SFX extends Object
This class constructs sounds clips to be played in the SFXPlayer class.
Author:
Diana
  • Constructor Details

    • SFX

      public SFX(String name)
      Loads a chosen file and initialises a clip from AudioInputStream.
      Parameters:
      name - Name of the the sound to be played.
  • Method Details

    • getClip

      public Clip getClip()
      Returns:
      the SFX clip.
    • getClipName

      public String getClipName()
      Returns:
      the SFX clip name.