Enum Class SFX.Sounds

java.lang.Object
java.lang.Enum<SFX.Sounds>
nz.ac.vuw.ecs.swen225.gp22.renderer.SFX.Sounds
All Implemented Interfaces:
Serializable, Comparable<SFX.Sounds>, Constable
Enclosing class:
SFX

public static enum SFX.Sounds extends Enum<SFX.Sounds>
An enum of the sounds to be played during the game.
  • Enum Constant Details

    • Background

      public static final SFX.Sounds Background
      The background music.
    • CollectItem

      public static final SFX.Sounds CollectItem
      Music for collecting keys and treasures.
    • Unlock

      public static final SFX.Sounds Unlock
      Music for unlocking doors and the exit.
  • Method Details

    • values

      public static SFX.Sounds[] 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 SFX.Sounds 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