Enum Class EffectSoundFile

java.lang.Object
java.lang.Enum<EffectSoundFile>
com.csse3200.game.services.sound.EffectSoundFile
All Implemented Interfaces:
SoundFile, Serializable, Comparable<EffectSoundFile>, Constable

public enum EffectSoundFile extends Enum<EffectSoundFile> implements SoundFile
  • Enum Constant Details

  • Method Details

    • values

      public static EffectSoundFile[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EffectSoundFile valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFilePath

      public String getFilePath()
      Description copied from interface: SoundFile
      A filepath that is to be loaded into the sound system. Every enum that implements the SoundFile interface must have a private filePath variable to store this property.
      Specified by:
      getFilePath in interface SoundFile
      Returns:
      a String filepath